Unicopia/src/main/java/com/minelittlepony/unicopia/item/OatmealItem.java

22 lines
554 B
Java
Raw Normal View History

package com.minelittlepony.unicopia.item;
import net.minecraft.entity.LivingEntity;
import net.minecraft.item.ItemStack;
import net.minecraft.item.StewItem;
import net.minecraft.world.World;
public class OatmealItem extends StewItem {
public OatmealItem(Settings settings) {
super(settings);
}
@Override
public ItemStack finishUsing(ItemStack stack, World world, LivingEntity user) {
if (!world.isClient) {
user.clearStatusEffects();
}
return super.finishUsing(stack, world, user);
}
}