mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-10 18:27:41 +01:00
Fix polarity of Bat.isAwake() and Bat.setAwake(boolean). Fixes BUKKIT-5624
By: Wesley Wolfe <wesley.d.wolfe+git@gmail.com>
This commit is contained in:
parent
40a99f5a97
commit
93b3b6a162
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user