Empty the cup

This commit is contained in:
Mrbysco 2024-03-15 02:40:07 +01:00
parent 3b180faf60
commit c2b2cc4d17

View file

@ -87,7 +87,7 @@ public class ItemCoffee extends ItemBase {
applyPotionEffectsFromStack(stack, livingEntity);
theStack.setDamageValue(theStack.getDamageValue() + 1);
if (theStack.getMaxDamage() - theStack.getDamageValue() < 0) {
return new ItemStack(ActuallyItems.COFFEE_CUP.get());
return new ItemStack(ActuallyItems.EMPTY_CUP.get());
} else {
return theStack;
}