Skip to content

Opimisation of unbreakable- and protectionblocks - #1

Open
Hermelijn15 wants to merge 1 commit into
FragmentMC:masterfrom
Hermelijn15:master
Open

Opimisation of unbreakable- and protectionblocks#1
Hermelijn15 wants to merge 1 commit into
FragmentMC:masterfrom
Hermelijn15:master

Conversation

@Hermelijn15

Copy link
Copy Markdown

Reduce config calls by saving material list of unbreakable and protection blocks in memory.
Benchmarking:

benchmark

@stanuwu

stanuwu commented Nov 19, 2023

Copy link
Copy Markdown
Contributor

Good changes, but I would not execute this code in the config class. Also Hash Set might be faster if you want to try that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants