diff options
Diffstat (limited to 'patches/server/0761-Allow-removal-addition-of-entities-to-entity-ticklis.patch')
-rw-r--r-- | patches/server/0761-Allow-removal-addition-of-entities-to-entity-ticklis.patch | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/patches/server/0761-Allow-removal-addition-of-entities-to-entity-ticklis.patch b/patches/server/0761-Allow-removal-addition-of-entities-to-entity-ticklis.patch index d68c8524e7..bf79d6270e 100644 --- a/patches/server/0761-Allow-removal-addition-of-entities-to-entity-ticklis.patch +++ b/patches/server/0761-Allow-removal-addition-of-entities-to-entity-ticklis.patch @@ -11,10 +11,10 @@ No it doesn't. So, allowing removal while iteration ENSURES only entities MARKED TO TICK are ticked. diff --git a/src/main/java/net/minecraft/world/level/entity/EntityTickList.java b/src/main/java/net/minecraft/world/level/entity/EntityTickList.java -index b27c8db914cca3ff0ea8a24acddb9cb9870ce21d..4814e719e0b898464692075170889fdb2729a26a 100644 +index a176a886235494fdc722030a93658d361bf50f03..4cdfc433df67afcd455422e9baf56f167dd712ae 100644 --- a/src/main/java/net/minecraft/world/level/entity/EntityTickList.java +++ b/src/main/java/net/minecraft/world/level/entity/EntityTickList.java -@@ -9,57 +9,42 @@ import javax.annotation.Nullable; +@@ -8,57 +8,42 @@ import javax.annotation.Nullable; import net.minecraft.world.entity.Entity; public class EntityTickList { @@ -28,7 +28,7 @@ index b27c8db914cca3ff0ea8a24acddb9cb9870ce21d..4814e719e0b898464692075170889fdb - if (this.iterated == this.active) { - this.passive.clear(); - -- for(Entry<Entity> entry : Int2ObjectMaps.fastIterable(this.active)) { +- for(Int2ObjectMap.Entry<Entity> entry : Int2ObjectMaps.fastIterable(this.active)) { - this.passive.put(entry.getIntKey(), entry.getValue()); - } - |