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 copyFrom(IPlayer oldPlayer);
void onEntityEat(ItemStack stack, @Nullable ItemFood food); void onEat(ItemStack stack, @Nullable ItemFood food);
boolean stepOnCloud(); boolean stepOnCloud();

View file

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

View file

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