MysticMods / Roots

Home of the Roots Minecraft Mod
GNU Lesser General Public License v3.0
44 stars 33 forks source link

Fixed Dev Environment and Optimized Soil Handler #782

Closed ByThePowerOfScience closed 2 years ago

ByThePowerOfScience commented 2 years ago

Removed duplicate "instanceof" checks and changed the order of checks so that the handler body only runs if the block is one of the affected elemental soil types.

These irrelevant expensive checks were causing a good bit of lag with the fast harvesting of crops on servers with AgriCraft installed.

ByThePowerOfScience commented 2 years ago

This is intended for the most recent 1.12 branch. If I chose the wrong target branch, please reassign to the correct one.

noobanidus commented 2 years ago

Were you able to get this to compile? I've had a lot of issues getting the dev environment to function so I've been lax on fixing 1.12 issues.

ByThePowerOfScience commented 2 years ago

Were you able to get this to compile? I've had a lot of issues getting the dev environment to function so I've been lax on fixing 1.12 issues.

No, I just edited this file in the browser.

ByThePowerOfScience commented 2 years ago

Ok it turns out that, remarkably, I should test my code before submitting it. Imagine that.

ByThePowerOfScience commented 2 years ago

@noobanidus I've shifted over to working on the Roots repo directly, and I'm having trouble understanding your build setup. Could you explain how you have everything set up?

If you'd like, we can talk more about this via email or Discord instead of here.

noobanidus commented 2 years ago

Yeah, it's unfortunately a very complex system. Feel free to drop me a message on Discord -- there should be a link to the Mystic Modding discord in the description/project page.

ByThePowerOfScience commented 2 years ago

Development environment is fixed. I'm going to see if I can't patch some of the other issues I've noticed before this is merged.