GTNewHorizons / Hodgepodge

A HodgePodge of patches
GNU Lesser General Public License v3.0
39 stars 62 forks source link

Fix npe when interacting with candycraft sugar block #402

Closed Lyfts closed 4 months ago

Lyfts commented 4 months ago

The sugar block correctly checks if the equipped item is null in the first part of its if statement but doesn't return, this then causes an npe when it calls player.getCurrentEquippedItem().getItem() later.

It was reported here https://github.com/GTNewHorizons/Backhand/issues/19 but also happens without backhand installed.

Closes https://github.com/GTNewHorizons/Hodgepodge/issues/403