Fix polarity of Bat.isAwake() and Bat.setAwake(boolean). Fixes BUKKIT-5624
This commit is contained in:
parent
a1f3d35808
commit
4ab4fa5bb1
@ -26,11 +26,11 @@ public class CraftBat extends CraftAmbient implements Bat {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean isAwake() {
|
public boolean isAwake() {
|
||||||
return getHandle().isStartled();
|
return !getHandle().isStartled();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void setAwake(boolean state) {
|
public void setAwake(boolean state) {
|
||||||
getHandle().setStartled(state);
|
getHandle().setStartled(!state);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user