desht / ModularRouters

A Forge Mod for item routers with pluggable modules
16 stars 20 forks source link

Neoforge Changes #231

Closed Kevin-Marsh closed 1 day ago

Kevin-Marsh commented 4 days ago

Describe the bug

Neoforge has made a few changes which effect Modular routers. The PlantType system (Iplantable) was replaced and ToolActions was renamed to ItemAbilities. This prevents Modular Routers from functioning on newer Neoforge builds.

How to reproduce the bug

Try to run on Neoforge 21.0.40+

Expected behavior

N/A

Additional details

No response

Which Minecraft version are you using?

1.21

Crash log

No response

desht commented 1 day ago

Yes, I'm aware. Next Modular Routers release will be built against the latest Neoforge. Breaking changes happen on a regular basis in Neoforge betas.

desht commented 1 day ago

Actually, what is your exact problem here? Modular Routers doesn't do anything with PlantType / ItemAbilities, and compiles and runs without issue on latest Neoforge (21.0.43-beta).

Kevin-Marsh commented 1 day ago

If it all works then that is great. The mod was flagged by an allthemods team member searching for any mods that could potentially cause issues that had code mentioned in the breaking neoforge changes. There were a number of mods that were preventing testing and updates to new neoforge version that had issues opened to ensure that the devs were aware.

It appears that the pickaxemodule uses toolactions as a check and blockutil uses the iplantable as a check which you are correct shouldn't cause significant issues.

desht commented 1 day ago

Yeah, it all works fine, as far as I can tell. Neither IPlantable nor ToolActions were affected by the changes made in 21.0.40.

Kevin-Marsh commented 4 minutes ago

Hi again. Crafting a breaker module crashes the game when using the newest neoforge. My assumption is due to the toolactions to itemabilities change that I mentioned. I would assume that whatever calls blockutil might also crash.