mirror of
https://github.com/PaperMC/Paper.git
synced 2024-09-12 15:08:27 +02:00
Implement awake flag for bats. Adds BUKKIT-5606
This commit is contained in:
parent
730a62c96a
commit
8daacb9017
@ -23,4 +23,14 @@ public class CraftBat extends CraftAmbient implements Bat {
|
||||
public EntityType getType() {
|
||||
return EntityType.BAT;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isAwake() {
|
||||
return getHandle().isStartled();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setAwake(boolean state) {
|
||||
getHandle().setStartled(state);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user