|
event.getStack().shrink(1); |
Modded bonemeals with durability (e.g. Occultism's 'nature paste') are consumed by this line instead of using durability.
Here's code for Occultism nature paste: https://github.com/klikli-dev/occultism/blob/6aae8cccabc7eb5252982ff3db1f83dad98d24c0/src/main/java/com/klikli_dev/occultism/common/item/tool/NaturePasteItem.java#L45
A simple fix would be to check if the item stack in the BoneMealEvent is minecraft:bone_meal and only shrinking the stack if so, but this may introduce false negatives
utilitarian/src/main/java/cy/jdkdigital/utilitarian/event/EventHandler.java
Line 296 in 1c41dc9
Modded bonemeals with durability (e.g. Occultism's 'nature paste') are consumed by this line instead of using durability.
Here's code for Occultism nature paste: https://github.com/klikli-dev/occultism/blob/6aae8cccabc7eb5252982ff3db1f83dad98d24c0/src/main/java/com/klikli_dev/occultism/common/item/tool/NaturePasteItem.java#L45
A simple fix would be to check if the item stack in the
BoneMealEventisminecraft:bone_mealand only shrinking the stack if so, but this may introduce false negatives