mirror of
https://github.com/Sollace/Unicopia.git
synced 2024-11-27 15:17:59 +01:00
Fixed effects for drinking cider
This commit is contained in:
parent
f970950bd4
commit
c8b2bc8b5f
1 changed files with 4 additions and 0 deletions
|
@ -1,5 +1,7 @@
|
|||
package com.minelittlepony.unicopia.item;
|
||||
|
||||
import com.minelittlepony.unicopia.item.toxin.ToxicHolder;
|
||||
|
||||
import net.minecraft.advancement.criterion.Criteria;
|
||||
import net.minecraft.entity.LivingEntity;
|
||||
import net.minecraft.entity.player.PlayerEntity;
|
||||
|
@ -27,6 +29,8 @@ public class DrinkableItem extends Item {
|
|||
stack.decrement(1);
|
||||
}
|
||||
|
||||
((ToxicHolder)this).getToxic().ifPresent(t -> t.finishUsing(stack, world, user));
|
||||
|
||||
return stack.isEmpty() ? new ItemStack(getRecipeRemainder()) : stack;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue