From 4ab4fa5bb1d846560d77a34b4b47dcb187f84e5f Mon Sep 17 00:00:00 2001 From: Wesley Wolfe Date: Tue, 20 May 2014 03:13:35 -0500 Subject: [PATCH] Fix polarity of Bat.isAwake() and Bat.setAwake(boolean). Fixes BUKKIT-5624 --- src/main/java/org/bukkit/craftbukkit/entity/CraftBat.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/org/bukkit/craftbukkit/entity/CraftBat.java b/src/main/java/org/bukkit/craftbukkit/entity/CraftBat.java index ba0a960dec..bf3a872bbe 100644 --- a/src/main/java/org/bukkit/craftbukkit/entity/CraftBat.java +++ b/src/main/java/org/bukkit/craftbukkit/entity/CraftBat.java @@ -26,11 +26,11 @@ public class CraftBat extends CraftAmbient implements Bat { @Override public boolean isAwake() { - return getHandle().isStartled(); + return !getHandle().isStartled(); } @Override public void setAwake(boolean state) { - getHandle().setStartled(state); + getHandle().setStartled(!state); } }