1
0
Fork 0

add smooth update option

This commit is contained in:
Sen 2025-09-08 08:22:39 +02:00
parent 1fa3d76aed
commit 6e2c9ca2d7
Signed by: sen
GPG key ID: 3AC50A6F47D1B722
2 changed files with 4 additions and 1 deletions

View file

@ -27,6 +27,7 @@ import common.packet.SPacketSpawnObject;
import common.packet.SPacketSpawnPlayer;
import common.tags.TagObject;
import common.util.ExtMath;
import common.vars.Vars;
import common.util.Equipment;
public class EntityTrackerEntry {
@ -119,7 +120,7 @@ public class EntityTrackerEntry {
// this.sendMetadataToAllAssociatedPlayers();
// }
if(this.updateCounter % this.updateFrequency == 0 || this.trackedEntity.isAirBorne
if(Vars.alwaysUpdate || this.updateCounter % this.updateFrequency == 0 || this.trackedEntity.isAirBorne
|| this.trackedEntity.getDataWatcher().hasObjectChanged()) {
if(this.trackedEntity.vehicle == null) {
++this.ticksSinceLastForcedTeleport;

View file

@ -210,6 +210,8 @@ public abstract class Vars {
public static boolean rabidRabbits = false;
@Var(name = "evilFowl")
public static boolean aggressiveChickens = false;
@Var(name = "smoothUpdates")
public static boolean alwaysUpdate = false;
@Var(name = "hurtCooldown")
public static int hurtDelay = 20;