@@ -1041,7 +1041,7 @@ index 4dd57007af218ba1c0e666117a49939c5884f2c6..a6cb949b6f048455acc50c897fdd93d3
10411041 }
10421042
10431043diff --git a/src/main/java/net/minecraft/server/level/ChunkMap.java b/src/main/java/net/minecraft/server/level/ChunkMap.java
1044- index f3a2a5dcd18d8abe370779f75106eacab498c3b6..67113f1bb622acde89c05d1ee0af88644f67e776 100644
1044+ index ae93a5bd184e084720400a44a3d9b14910343333..d2f59b13121f1d105837e0a52be4aca5d110c15c 100644
10451045--- a/src/main/java/net/minecraft/server/level/ChunkMap.java
10461046+++ b/src/main/java/net/minecraft/server/level/ChunkMap.java
10471047@@ -1,8 +1,10 @@
@@ -1217,7 +1217,7 @@ index be11caf7c0dcdb11e24cfb053cda45ac1867da63..8f5e9f1bdfd2e02512e1341f91b147b1
12171217 }
12181218
12191219diff --git a/src/main/java/net/minecraft/server/level/ServerLevel.java b/src/main/java/net/minecraft/server/level/ServerLevel.java
1220- index ce9ff034a281cd9cc76c26713b6d1eab3f6c9fe2..ae090f58bec25270e55f8da37355351783e69a7f 100644
1220+ index 073cea951644f25c276ba05ff1fc48fda08593da..c7fe4b6aa8d68bd5dc394752a5ae635eb46c5f31 100644
12211221--- a/src/main/java/net/minecraft/server/level/ServerLevel.java
12221222+++ b/src/main/java/net/minecraft/server/level/ServerLevel.java
12231223@@ -1,6 +1,8 @@
@@ -1412,7 +1412,7 @@ index 8e4325abb2dda74c38b17bb27f9dcfcf97ba2de6..1be4b3ad18d314b0460ce61e01afd0d7
14121412
14131413 public UserWhiteList getWhiteList() {
14141414diff --git a/src/main/java/net/minecraft/world/entity/Entity.java b/src/main/java/net/minecraft/world/entity/Entity.java
1415- index fdf607c91ee31206839b14212a20ee81ec751776..3eb1f5e422002a48651a24d0e70884bf54de717e 100644
1415+ index efb347d1a8ac45b13e1abfa712cbd204c64501ae..668fcdf95c92b439612d98f224ae4ac9bd055bdf 100644
14161416--- a/src/main/java/net/minecraft/world/entity/Entity.java
14171417+++ b/src/main/java/net/minecraft/world/entity/Entity.java
14181418@@ -125,7 +125,6 @@ import org.bukkit.craftbukkit.event.CraftPortalEvent;
@@ -1424,7 +1424,7 @@ index fdf607c91ee31206839b14212a20ee81ec751776..3eb1f5e422002a48651a24d0e70884bf
14241424 import org.bukkit.event.hanging.HangingBreakByEntityEvent;
14251425 import org.bukkit.event.vehicle.VehicleBlockCollisionEvent;
14261426@@ -286,7 +285,6 @@ public abstract class Entity implements Nameable, EntityAccess, CommandSource, i
1427- public boolean forceExplosionKnockback ; // SPIGOT-949
1427+ public boolean lastDamageCancelled ; // SPIGOT-5339, SPIGOT-6252, SPIGOT-6777: Keep track if the event was canceled
14281428 public boolean persistentInvisibility = false;
14291429 public BlockPos lastLavaContact;
14301430- public CustomTimingsHandler tickTimer = org.bukkit.craftbukkit.SpigotTimings.getEntityTimings(this); // Spigot
@@ -1504,7 +1504,7 @@ index e688949fc2f3031dc9c9817bc59554e9f5a436af..20cfdba68c200e87d00995a6a4e25a5f
15041504 }
15051505
15061506diff --git a/src/main/java/net/minecraft/world/entity/LivingEntity.java b/src/main/java/net/minecraft/world/entity/LivingEntity.java
1507- index e9e97cf0b202c84252fb3bada97890198fcc6bb9..2a65e7ae49f2fc1d56cdace60f72b729c1d9b28c 100644
1507+ index 5669d868f764dcdea8c510fc902cadea226ce473..46b40b08916369f8aa8b28144f07c48741c45101 100644
15081508--- a/src/main/java/net/minecraft/world/entity/LivingEntity.java
15091509+++ b/src/main/java/net/minecraft/world/entity/LivingEntity.java
15101510@@ -137,7 +137,7 @@ import org.bukkit.event.entity.EntityTeleportEvent;
@@ -1516,15 +1516,15 @@ index e9e97cf0b202c84252fb3bada97890198fcc6bb9..2a65e7ae49f2fc1d56cdace60f72b729
15161516
15171517 public abstract class LivingEntity extends Entity {
15181518
1519- @@ -2761 ,7 +2761 ,6 @@ public abstract class LivingEntity extends Entity {
1519+ @@ -2760 ,7 +2760 ,6 @@ public abstract class LivingEntity extends Entity {
15201520
15211521 @Override
15221522 public void tick() {
15231523- SpigotTimings.timerEntityBaseTick.startTiming(); // Spigot
15241524 super.tick();
15251525 this.updatingUsingItem();
15261526 this.updateSwimAmount();
1527- @@ -2802 ,9 +2801 ,7 @@ public abstract class LivingEntity extends Entity {
1527+ @@ -2801 ,9 +2800 ,7 @@ public abstract class LivingEntity extends Entity {
15281528 }
15291529 }
15301530
@@ -1534,7 +1534,7 @@ index e9e97cf0b202c84252fb3bada97890198fcc6bb9..2a65e7ae49f2fc1d56cdace60f72b729
15341534 double d0 = this.getX() - this.xo;
15351535 double d1 = this.getZ() - this.zo;
15361536 float f = (float) (d0 * d0 + d1 * d1);
1537- @@ -2884 ,8 +2881 ,6 @@ public abstract class LivingEntity extends Entity {
1537+ @@ -2883 ,8 +2880 ,6 @@ public abstract class LivingEntity extends Entity {
15381538 if (this.isSleeping()) {
15391539 this.setXRot(0.0F);
15401540 }
@@ -1543,23 +1543,23 @@ index e9e97cf0b202c84252fb3bada97890198fcc6bb9..2a65e7ae49f2fc1d56cdace60f72b729
15431543 }
15441544
15451545 public void detectEquipmentUpdates() {
1546- @@ -3067 ,7 +3062 ,6 @@ public abstract class LivingEntity extends Entity {
1546+ @@ -3066 ,7 +3061 ,6 @@ public abstract class LivingEntity extends Entity {
15471547
15481548 this.setDeltaMovement(d4, d5, d6);
15491549 this.level.getProfiler().push("ai");
15501550- SpigotTimings.timerEntityAI.startTiming(); // Spigot
15511551 if (this.isImmobile()) {
15521552 this.jumping = false;
15531553 this.xxa = 0.0F;
1554- @@ -3077 ,7 +3071 ,6 @@ public abstract class LivingEntity extends Entity {
1554+ @@ -3076 ,7 +3070 ,6 @@ public abstract class LivingEntity extends Entity {
15551555 this.serverAiStep();
15561556 this.level.getProfiler().pop();
15571557 }
15581558- SpigotTimings.timerEntityAI.stopTiming(); // Spigot
15591559
15601560 this.level.getProfiler().pop();
15611561 this.level.getProfiler().push("jump");
1562- @@ -3112 ,9 +3105 ,9 @@ public abstract class LivingEntity extends Entity {
1562+ @@ -3111 ,9 +3104 ,9 @@ public abstract class LivingEntity extends Entity {
15631563 this.updateFallFlying();
15641564 AABB axisalignedbb = this.getBoundingBox();
15651565
@@ -1571,7 +1571,7 @@ index e9e97cf0b202c84252fb3bada97890198fcc6bb9..2a65e7ae49f2fc1d56cdace60f72b729
15711571 this.level.getProfiler().pop();
15721572 this.level.getProfiler().push("freezing");
15731573 boolean flag1 = this.getType().is(EntityTypeTags.FREEZE_HURTS_EXTRA_TYPES);
1574- @@ -3143 ,9 +3136 ,7 @@ public abstract class LivingEntity extends Entity {
1574+ @@ -3142 ,9 +3135 ,7 @@ public abstract class LivingEntity extends Entity {
15751575 this.checkAutoSpinAttack(axisalignedbb, this.getBoundingBox());
15761576 }
15771577
@@ -2145,10 +2145,10 @@ index 8cb510615bc8b4638b4aadfd9732c9a3d65b1fac..e0ba1608d83c6007717df3323b916a92
21452145 * This helper class represents the different NBT Tags.
21462146 * <p>
21472147diff --git a/src/main/java/org/spigotmc/ActivationRange.java b/src/main/java/org/spigotmc/ActivationRange.java
2148- index 67f4ebf30d752fdc595fc847d695d8dad0e805d8..af66bb6b3733eaf722838de8b9f45396ffddc2f3 100644
2148+ index a7675df12d509ae0ff585566b395165f55f8a8cf..38cf408899cef72bc9d2888109a7ac7ce0aec638 100644
21492149--- a/src/main/java/org/spigotmc/ActivationRange.java
21502150+++ b/src/main/java/org/spigotmc/ActivationRange.java
2151- @@ -28 ,7 +28 ,7 @@ import net.minecraft.world.entity.projectile.ThrownTrident;
2151+ @@ -27 ,7 +27 ,7 @@ import net.minecraft.world.entity.projectile.ThrownTrident;
21522152 import net.minecraft.world.entity.raid.Raider;
21532153 import net.minecraft.world.level.Level;
21542154 import net.minecraft.world.phys.AABB;
@@ -2157,7 +2157,7 @@ index 67f4ebf30d752fdc595fc847d695d8dad0e805d8..af66bb6b3733eaf722838de8b9f45396
21572157
21582158 public class ActivationRange
21592159 {
2160- @@ -72 ,8 +72 ,8 @@ public class ActivationRange
2160+ @@ -71 ,8 +71 ,8 @@ public class ActivationRange
21612161 /**
21622162 * These entities are excluded from Activation range checks.
21632163 *
@@ -2168,7 +2168,7 @@ index 67f4ebf30d752fdc595fc847d695d8dad0e805d8..af66bb6b3733eaf722838de8b9f45396
21682168 * @return boolean If it should always tick.
21692169 */
21702170 public static boolean initializeEntityActivationState(Entity entity, SpigotWorldConfig config)
2171- @@ -108 ,7 +108 ,7 @@ public class ActivationRange
2171+ @@ -107 ,7 +107 ,7 @@ public class ActivationRange
21722172 */
21732173 public static void activateEntities(Level world)
21742174 {
@@ -2177,7 +2177,7 @@ index 67f4ebf30d752fdc595fc847d695d8dad0e805d8..af66bb6b3733eaf722838de8b9f45396
21772177 final int miscActivationRange = world.spigotConfig.miscActivationRange;
21782178 final int raiderActivationRange = world.spigotConfig.raiderActivationRange;
21792179 final int animalActivationRange = world.spigotConfig.animalActivationRange;
2180- @@ -131 ,7 +131 ,7 @@ public class ActivationRange
2180+ @@ -134 ,7 +134 ,7 @@ public class ActivationRange
21812181
21822182 world.getEntities().get(maxBB, ActivationRange::activateEntity);
21832183 }
@@ -2186,7 +2186,7 @@ index 67f4ebf30d752fdc595fc847d695d8dad0e805d8..af66bb6b3733eaf722838de8b9f45396
21862186 }
21872187
21882188 /**
2189- @@ -226 ,10 +226 ,8 @@ public class ActivationRange
2189+ @@ -229 ,10 +229 ,8 @@ public class ActivationRange
21902190 */
21912191 public static boolean checkIfActive(Entity entity)
21922192 {
@@ -2197,7 +2197,7 @@ index 67f4ebf30d752fdc595fc847d695d8dad0e805d8..af66bb6b3733eaf722838de8b9f45396
21972197 return true;
21982198 }
21992199
2200- @@ -253 ,7 +251 ,6 @@ public class ActivationRange
2200+ @@ -256 ,7 +254 ,6 @@ public class ActivationRange
22012201 {
22022202 isActive = false;
22032203 }
0 commit comments