add smooth update option
This commit is contained in:
parent
1fa3d76aed
commit
6e2c9ca2d7
2 changed files with 4 additions and 1 deletions
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue