Mirror von
https://github.com/GeyserMC/Geyser.git
synchronisiert 2024-11-03 14:50:19 +01:00
Fix sonic boom duration ticking below zero
Dieser Commit ist enthalten in:
Ursprung
365f8cf7e3
Commit
2e3e7c6949
@ -80,11 +80,14 @@ public class WardenEntity extends MonsterEntity implements Tickable {
|
|||||||
session.sendUpstreamPacket(packet);
|
session.sendUpstreamPacket(packet);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (--sonicBoomTickDuration == 0) {
|
if (sonicBoomTickDuration > 0) {
|
||||||
|
sonicBoomTickDuration--;
|
||||||
|
if (sonicBoomTickDuration == 0) {
|
||||||
setFlag(EntityFlag.SONIC_BOOM, false);
|
setFlag(EntityFlag.SONIC_BOOM, false);
|
||||||
updateBedrockMetadata();
|
updateBedrockMetadata();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
public void onSonicBoom() {
|
public void onSonicBoom() {
|
||||||
setFlag(EntityFlag.SONIC_BOOM, true);
|
setFlag(EntityFlag.SONIC_BOOM, true);
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren