Mirror von
https://github.com/GeyserMC/Geyser.git
synchronisiert 2024-09-08 20:43:04 +02:00
Fix sonic boom duration ticking below zero
Dieser Commit ist enthalten in:
Ursprung
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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren