From 93b3b6a1624c22a905e6f9639ea6dd26372f2426 Mon Sep 17 00:00:00 2001 From: CraftBukkit/Spigot Date: Tue, 20 May 2014 03:13:35 -0500 Subject: [PATCH] Fix polarity of Bat.isAwake() and Bat.setAwake(boolean). Fixes BUKKIT-5624 By: Wesley Wolfe --- .../src/main/java/org/bukkit/craftbukkit/entity/CraftBat.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 ba0a960dec..bf3a872bbe 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 @@ -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); } }