Actually Subtractions

Actually Subtractions

25.5k Downloads

Crash when using Minecolonies

Thodor12 opened this issue ยท 2 comments

commented

Hello,

A user of our mod reported a crash when using this mod.
Your Worm item has an onHoe method that automatically assumes existence of a player, which crashes our Farmer AI because they use the tool modification event to attempt to till soil to farmland.

Considering you only require the level, you should probably use BlockToolModificationEvent#getLevel() instead of BlockToolModificationEvent#getPlayer().getLevel().

Related to ldtteam/minecolonies#10133

commented

I'll fix this in the next release.

commented

Fixed in 1.2.14.2 a5aae32