3
0
Mirror von https://github.com/GeyserMC/Geyser.git synchronisiert 2024-07-30 17:18:10 +02:00

Fix sonic boom duration ticking below zero

Dieser Commit ist enthalten in:
davchoo 2022-05-31 15:15:15 -04:00
Ursprung 365f8cf7e3
Commit 2e3e7c6949
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden
GPG-Schlüssel-ID: A0168C8E45799B7D

Datei anzeigen

@ -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();
}
}
}