This commit is contained in:
Sollace 2019-02-01 11:00:56 +02:00
parent d838849df7
commit e6e69f3cbd
3 changed files with 3 additions and 3 deletions

View file

@ -50,7 +50,7 @@ public interface IPlayer extends ICaster<EntityPlayer>, IRaceContainer<EntityPla
void copyFrom(IPlayer oldPlayer);
void onEntityEat(ItemStack stack, @Nullable ItemFood food);
void onEat(ItemStack stack, @Nullable ItemFood food);
boolean stepOnCloud();

View file

@ -236,7 +236,7 @@ class PlayerCapabilities implements IPlayer {
}
@Override
public void onEntityEat(ItemStack stack, @Nullable ItemFood food) {
public void onEat(ItemStack stack, @Nullable ItemFood food) {
if (getPlayerSpecies() == Race.CHANGELING) {
EntityPlayer player = getOwner();

View file

@ -35,7 +35,7 @@ class PlayerFood implements IFood {
@Override
public void finish() {
if (!eatingStack.isEmpty()) {
player.onEntityEat(eatingStack, (ItemFood)eatingStack.getItem());
player.onEat(eatingStack, (ItemFood)eatingStack.getItem());
}
}