MagmaGuy / BetterStructures

Adds structures to Minecraft worlds using WorldEdit!
GNU General Public License v3.0
26 stars 12 forks source link

Improve ChunkLocationChecker #4

Closed masmc05 closed 2 years ago

masmc05 commented 2 years ago
  1. reduced calculations to check chunk
  2. reduced CraftBlock alocations

you can just copy paste this into your next release if you want, just some advices

MagmaGuy commented 2 years ago

It's a cool optimization and I will take it but I feel the need to point out that this is only occasionally used for debugging, this code is not used anywhere in the live project.

masmc05 commented 2 years ago

It's a cool optimization and I will take it but I feel the need to point out that this is only occasionally used for debugging, this code is not used anywhere in the live project.

oh, ok, but still can use it if you'll need that for production