From f9d2ead6bf50a318ea0dd9437e9d06788f698623 Mon Sep 17 00:00:00 2001 From: CraftBukkit/Spigot Date: Tue, 13 May 2014 20:38:42 -0500 Subject: [PATCH] Implement awake flag for bats. Adds BUKKIT-5606 By: Wesley Wolfe --- .../java/org/bukkit/craftbukkit/entity/CraftBat.java | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/paper-server/src/main/java/org/bukkit/craftbukkit/entity/CraftBat.java b/paper-server/src/main/java/org/bukkit/craftbukkit/entity/CraftBat.java index 1e413cbe5d..ba0a960dec 100644 --- a/paper-server/src/main/java/org/bukkit/craftbukkit/entity/CraftBat.java +++ b/paper-server/src/main/java/org/bukkit/craftbukkit/entity/CraftBat.java @@ -23,4 +23,14 @@ public class CraftBat extends CraftAmbient implements Bat { public EntityType getType() { return EntityType.BAT; } + + @Override + public boolean isAwake() { + return getHandle().isStartled(); + } + + @Override + public void setAwake(boolean state) { + getHandle().setStartled(state); + } }