diff options
author | Wesley Wolfe <wesley.d.wolfe+git@gmail.com> | 2014-05-20 03:13:35 -0500 |
---|---|---|
committer | Wesley Wolfe <wesley.d.wolfe+git@gmail.com> | 2014-05-20 03:18:26 -0500 |
commit | 4ab4fa5bb1d846560d77a34b4b47dcb187f84e5f (patch) | |
tree | 3fd0d9c3f51a570cf696b7c3fd646bb25bc4573e /src | |
parent | a1f3d35808a92c01289cfa6d18f53d3e91f61267 (diff) | |
download | craftbukkit-4ab4fa5bb1d846560d77a34b4b47dcb187f84e5f.tar craftbukkit-4ab4fa5bb1d846560d77a34b4b47dcb187f84e5f.tar.gz craftbukkit-4ab4fa5bb1d846560d77a34b4b47dcb187f84e5f.tar.lz craftbukkit-4ab4fa5bb1d846560d77a34b4b47dcb187f84e5f.tar.xz craftbukkit-4ab4fa5bb1d846560d77a34b4b47dcb187f84e5f.zip |
Fix polarity of Bat.isAwake() and Bat.setAwake(boolean). Fixes BUKKIT-5624
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/org/bukkit/craftbukkit/entity/CraftBat.java | 4 |
1 files 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 ba0a960d..bf3a872b 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); } } |