diff options
Diffstat (limited to 'patches/server/0763-Rewrite-entity-bounding-box-lookup-calls.patch')
-rw-r--r-- | patches/server/0763-Rewrite-entity-bounding-box-lookup-calls.patch | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/patches/server/0763-Rewrite-entity-bounding-box-lookup-calls.patch b/patches/server/0763-Rewrite-entity-bounding-box-lookup-calls.patch index bc3b1032a3..35b6347036 100644 --- a/patches/server/0763-Rewrite-entity-bounding-box-lookup-calls.patch +++ b/patches/server/0763-Rewrite-entity-bounding-box-lookup-calls.patch @@ -1210,7 +1210,7 @@ index 59703eb6610c21df22f25c22cc884c4450f0316c..bdd50c28a76576be7950e3ccf8e00b62 } diff --git a/src/main/java/net/minecraft/world/level/entity/PersistentEntitySectionManager.java b/src/main/java/net/minecraft/world/level/entity/PersistentEntitySectionManager.java -index 0c4ffc0049679b911cc1e1bea36eb21ff6324c46..dbb78ee61a6a3a7336f0656414cd729efd013009 100644 +index 6fe07e1c207efbf5dcec1bdfb1366764d99aa580..2276536a0c3e7c6e242400436e8e841cc3fff3b4 100644 --- a/src/main/java/net/minecraft/world/level/entity/PersistentEntitySectionManager.java +++ b/src/main/java/net/minecraft/world/level/entity/PersistentEntitySectionManager.java @@ -49,8 +49,10 @@ public class PersistentEntitySectionManager<T extends EntityAccess> implements A @@ -1225,7 +1225,7 @@ index 0c4ffc0049679b911cc1e1bea36eb21ff6324c46..dbb78ee61a6a3a7336f0656414cd729e this.sectionStorage = new EntitySectionStorage<>(entityClass, this.chunkVisibility); this.chunkVisibility.defaultReturnValue(Visibility.HIDDEN); this.chunkLoadStatuses.defaultReturnValue(PersistentEntitySectionManager.ChunkLoadStatus.FRESH); -@@ -107,6 +109,7 @@ public class PersistentEntitySectionManager<T extends EntityAccess> implements A +@@ -108,6 +110,7 @@ public class PersistentEntitySectionManager<T extends EntityAccess> implements A EntitySection<T> entitysection = this.sectionStorage.getOrCreateSection(i); entitysection.add(entity); // CraftBukkit - decompile error @@ -1233,7 +1233,7 @@ index 0c4ffc0049679b911cc1e1bea36eb21ff6324c46..dbb78ee61a6a3a7336f0656414cd729e entity.setLevelCallback(new PersistentEntitySectionManager.Callback(entity, i, entitysection)); if (!existing) { this.callbacks.onCreated(entity); -@@ -164,6 +167,7 @@ public class PersistentEntitySectionManager<T extends EntityAccess> implements A +@@ -165,6 +168,7 @@ public class PersistentEntitySectionManager<T extends EntityAccess> implements A io.papermc.paper.util.TickThread.ensureTickThread("Asynchronous chunk ticking status update"); // Paper Visibility visibility = Visibility.fromFullChunkStatus(levelType); @@ -1241,7 +1241,7 @@ index 0c4ffc0049679b911cc1e1bea36eb21ff6324c46..dbb78ee61a6a3a7336f0656414cd729e this.updateChunkStatus(chunkPos, visibility); } -@@ -456,6 +460,7 @@ public class PersistentEntitySectionManager<T extends EntityAccess> implements A +@@ -457,6 +461,7 @@ public class PersistentEntitySectionManager<T extends EntityAccess> implements A long i = SectionPos.asLong(blockposition); if (i != this.currentSectionKey) { @@ -1249,7 +1249,7 @@ index 0c4ffc0049679b911cc1e1bea36eb21ff6324c46..dbb78ee61a6a3a7336f0656414cd729e Visibility visibility = this.currentSection.getStatus(); if (!this.currentSection.remove(this.entity)) { -@@ -504,6 +509,7 @@ public class PersistentEntitySectionManager<T extends EntityAccess> implements A +@@ -505,6 +510,7 @@ public class PersistentEntitySectionManager<T extends EntityAccess> implements A if (!this.currentSection.remove(this.entity)) { PersistentEntitySectionManager.LOGGER.warn("Entity {} wasn't found in section {} (destroying due to {})", this.entity, SectionPos.of(this.currentSectionKey), reason); } |