
Crash when using Minecolonies
Thodor12 opened this issue ยท 2 comments
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
Fixed in 1.2.14.2 a5aae32