Mirror von
https://github.com/GeyserMC/Geyser.git
synchronisiert 2024-11-03 14:50:19 +01:00
Set default Warden heartBeatDelay to 40 (#3071)
Dieser Commit ist enthalten in:
Ursprung
fef0401add
Commit
18f6836c15
@ -41,7 +41,7 @@ import java.util.UUID;
|
|||||||
import java.util.concurrent.ThreadLocalRandom;
|
import java.util.concurrent.ThreadLocalRandom;
|
||||||
|
|
||||||
public class WardenEntity extends MonsterEntity implements Tickable {
|
public class WardenEntity extends MonsterEntity implements Tickable {
|
||||||
private int heartBeatDelay;
|
private int heartBeatDelay = 40;
|
||||||
private int tickCount;
|
private int tickCount;
|
||||||
|
|
||||||
private int sonicBoomTickDuration;
|
private int sonicBoomTickDuration;
|
||||||
@ -50,6 +50,12 @@ public class WardenEntity extends MonsterEntity implements Tickable {
|
|||||||
super(session, entityId, geyserId, uuid, definition, position, motion, yaw, pitch, headYaw);
|
super(session, entityId, geyserId, uuid, definition, position, motion, yaw, pitch, headYaw);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected void initializeMetadata() {
|
||||||
|
super.initializeMetadata();
|
||||||
|
dirtyMetadata.put(EntityData.HEARTBEAT_INTERVAL_TICKS, heartBeatDelay);
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void setPose(Pose pose) {
|
public void setPose(Pose pose) {
|
||||||
setFlag(EntityFlag.DIGGING, pose == Pose.DIGGING);
|
setFlag(EntityFlag.DIGGING, pose == Pose.DIGGING);
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren