MagmaGuy / BetterStructures

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

Support for paper api to prevent lags #3

Closed masmc05 closed 1 year ago

masmc05 commented 2 years ago

https://spark.lucko.me/GnEvNPaBfO as you can see here, a lot of load here is produced by the fact that World#getChunk (and here Block#getTyoe) isn't made to interact with it from async, if you'll look into minecraft code, you'll see that getting that chunk will redirect it to main thread https://spark.lucko.me/V1gX4UvdLj here you can see better the results of such chunk loading also here you can see that the way you spawn entities conflicts with MobFarmManager, but idk if i need to open new issue or you could resolve both here