Skip to content

Commit

Permalink
Set default Warden heartBeatDelay to 40 (GeyserMC#3071)
Browse files Browse the repository at this point in the history
  • Loading branch information
AJ-Ferguson committed Jun 18, 2022
1 parent fef0401 commit 18f6836
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
import java.util.concurrent.ThreadLocalRandom;

public class WardenEntity extends MonsterEntity implements Tickable {
private int heartBeatDelay;
private int heartBeatDelay = 40;
private int tickCount;

private int sonicBoomTickDuration;
Expand All @@ -50,6 +50,12 @@ public WardenEntity(GeyserSession session, int entityId, long geyserId, UUID uui
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
public void setPose(Pose pose) {
setFlag(EntityFlag.DIGGING, pose == Pose.DIGGING);
Expand Down

0 comments on commit 18f6836

Please sign in to comment.