Fix deployer can eat

This commit is contained in:
Snownee 2020-05-18 22:35:11 +08:00
parent 4a7ad75cd0
commit 1378418593

View file

@ -82,6 +82,11 @@ public class DeployerFakePlayer extends FakePlayer {
return 1 / 64f; return 1 / 64f;
} }
@Override
public boolean canEat(boolean ignoreHunger) {
return false;
}
@SubscribeEvent @SubscribeEvent
public static void deployerHasEyesOnHisFeet(EntityEvent.EyeHeight event) { public static void deployerHasEyesOnHisFeet(EntityEvent.EyeHeight event) {
if (event.getEntity() instanceof DeployerFakePlayer) if (event.getEntity() instanceof DeployerFakePlayer)