PTOM76 / EnhancedQuarries

開発中です。
Mozilla Public License 2.0
1 stars 3 forks source link

Filler performance improvements #25

Closed dooshiifox closed 3 months ago

dooshiifox commented 5 months ago

How does it work?

I've tested this on a 60 120 120 cuboid and it performs smoothly, unlike the current implementation which slows the game to ~2tps.

However, there seems to be a bug that prevents the NBT data from saving. Loading a world causes the filler to reset. I'm unsure if this was an already-existing issue or something this change caused. I am not sure where or how to fix it.

Additionally, I changed how modules work. I'm not sure why you had special rules for Fill, Delete, Remove, Box, Level, Torch, and Wall, but now they're modules like the rest of them. I also merged onProcessIn/On/UnderRange into just onProcess since there's no need to separate them anymore.

This is my first time modding MC and writing Java, so sorry for any mistakes or dumb errors haha. Lastly, you should maybe go update https://maven.pitan76.net/ with the latest mcpitanlib! I was crashing with hasNbt when trying to get it running!

Thank you :3