diff options
author | Jason <[email protected]> | 2022-05-29 12:54:25 -0700 |
---|---|---|
committer | GitHub <[email protected]> | 2022-05-29 12:54:25 -0700 |
commit | af3b3778f6de06af48de08d41a43565d3ff19976 (patch) | |
tree | 77b45ab00e1dfde03c3dee2aa92e64aae6b0909f /patches/server/0761-Allow-removal-addition-of-entities-to-entity-ticklis.patch | |
parent | 3f7fbe316d85040cde5e0694861a5b1675170efb (diff) | |
download | Paper-af3b3778f6de06af48de08d41a43565d3ff19976.tar.gz Paper-af3b3778f6de06af48de08d41a43565d3ff19976.zip |
Update ForgeFlower (#7857)
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()); - } - |