mirror of https://github.com/GeyserMC/Geyser.git
Fix sonic boom duration ticking below zero
This commit is contained in:
parent
365f8cf7e3
commit
2e3e7c6949
|
@ -80,9 +80,12 @@ public class WardenEntity extends MonsterEntity implements Tickable {
|
|||
session.sendUpstreamPacket(packet);
|
||||
}
|
||||
|
||||
if (--sonicBoomTickDuration == 0) {
|
||||
setFlag(EntityFlag.SONIC_BOOM, false);
|
||||
updateBedrockMetadata();
|
||||
if (sonicBoomTickDuration > 0) {
|
||||
sonicBoomTickDuration--;
|
||||
if (sonicBoomTickDuration == 0) {
|
||||
setFlag(EntityFlag.SONIC_BOOM, false);
|
||||
updateBedrockMetadata();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue