Update from upstream SpigotMC
3beb7729816 a77ed5758a7 52c130fc6d9
This commit is contained in:
@@ -37,7 +37,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
||||
public CustomTimingsHandler tickTimer = org.bukkit.craftbukkit.SpigotTimings.getEntityTimings(this); // Spigot
|
||||
+ public final byte activationType = org.spigotmc.ActivationRange.initializeEntityActivationType(this);
|
||||
+ public final boolean defaultActivationState;
|
||||
+ public long activatedTick = 0;
|
||||
+ public long activatedTick = Integer.MIN_VALUE;
|
||||
+ public void inactiveTick() { }
|
||||
+ // Spigot end
|
||||
|
||||
@@ -455,7 +455,8 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
||||
+ public static boolean checkIfActive(Entity entity)
|
||||
+ {
|
||||
+ SpigotTimings.checkIfActiveTimer.startTiming();
|
||||
+ if ( !entity.isAddedToChunk() ) {
|
||||
+ // Never safe to skip fireworks or entities not yet added to chunk
|
||||
+ if ( !entity.isAddedToChunk() || entity instanceof EntityFireworks ) {
|
||||
+ SpigotTimings.checkIfActiveTimer.stopTiming();
|
||||
+ return true;
|
||||
+ }
|
||||
|
||||
Reference in New Issue
Block a user