mirror of
https://github.com/Ellpeck/ActuallyAdditions.git
synced 2024-11-22 07:13:28 +01:00
Empty the cup
This commit is contained in:
parent
3b180faf60
commit
c2b2cc4d17
1 changed files with 1 additions and 1 deletions
|
@ -87,7 +87,7 @@ public class ItemCoffee extends ItemBase {
|
||||||
applyPotionEffectsFromStack(stack, livingEntity);
|
applyPotionEffectsFromStack(stack, livingEntity);
|
||||||
theStack.setDamageValue(theStack.getDamageValue() + 1);
|
theStack.setDamageValue(theStack.getDamageValue() + 1);
|
||||||
if (theStack.getMaxDamage() - theStack.getDamageValue() < 0) {
|
if (theStack.getMaxDamage() - theStack.getDamageValue() < 0) {
|
||||||
return new ItemStack(ActuallyItems.COFFEE_CUP.get());
|
return new ItemStack(ActuallyItems.EMPTY_CUP.get());
|
||||||
} else {
|
} else {
|
||||||
return theStack;
|
return theStack;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue