mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-03 13:42:25 -07:00
Move async catches back to where they were (#6869)
This commit is contained in:
@@ -60,13 +60,13 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
|||||||
|
|
||||||
if (trackingStatus == Visibility.HIDDEN) {
|
if (trackingStatus == Visibility.HIDDEN) {
|
||||||
@@ -0,0 +0,0 @@ public class PersistentEntitySectionManager<T extends EntityAccess> implements A
|
@@ -0,0 +0,0 @@ public class PersistentEntitySectionManager<T extends EntityAccess> implements A
|
||||||
|
|
||||||
private boolean storeChunkSections(long chunkPos, Consumer<T> action, boolean callEvent) {
|
private boolean storeChunkSections(long chunkPos, Consumer<T> action, boolean callEvent) {
|
||||||
// CraftBukkit end
|
// CraftBukkit end
|
||||||
PersistentEntitySectionManager.ChunkLoadStatus persistententitysectionmanager_b = (PersistentEntitySectionManager.ChunkLoadStatus) this.chunkLoadStatuses.get(chunkPos);
|
|
||||||
+ org.spigotmc.AsyncCatcher.catchOp("Entity chunk save"); // Paper
|
+ org.spigotmc.AsyncCatcher.catchOp("Entity chunk save"); // Paper
|
||||||
|
PersistentEntitySectionManager.ChunkLoadStatus persistententitysectionmanager_b = (PersistentEntitySectionManager.ChunkLoadStatus) this.chunkLoadStatuses.get(chunkPos);
|
||||||
|
|
||||||
if (persistententitysectionmanager_b == PersistentEntitySectionManager.ChunkLoadStatus.PENDING) {
|
if (persistententitysectionmanager_b == PersistentEntitySectionManager.ChunkLoadStatus.PENDING) {
|
||||||
return false;
|
|
||||||
@@ -0,0 +0,0 @@ public class PersistentEntitySectionManager<T extends EntityAccess> implements A
|
@@ -0,0 +0,0 @@ public class PersistentEntitySectionManager<T extends EntityAccess> implements A
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -76,13 +76,13 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
|||||||
ChunkPos chunkcoordintpair = new ChunkPos(chunkPos);
|
ChunkPos chunkcoordintpair = new ChunkPos(chunkPos);
|
||||||
CompletableFuture completablefuture = this.permanentStorage.loadEntities(chunkcoordintpair);
|
CompletableFuture completablefuture = this.permanentStorage.loadEntities(chunkcoordintpair);
|
||||||
@@ -0,0 +0,0 @@ public class PersistentEntitySectionManager<T extends EntityAccess> implements A
|
@@ -0,0 +0,0 @@ public class PersistentEntitySectionManager<T extends EntityAccess> implements A
|
||||||
|
}
|
||||||
|
|
||||||
private boolean processChunkUnload(long chunkPos) {
|
private boolean processChunkUnload(long chunkPos) {
|
||||||
boolean flag = this.storeChunkSections(chunkPos, (entityaccess) -> {
|
|
||||||
+ org.spigotmc.AsyncCatcher.catchOp("Entity chunk unload process"); // Paper
|
+ org.spigotmc.AsyncCatcher.catchOp("Entity chunk unload process"); // Paper
|
||||||
|
boolean flag = this.storeChunkSections(chunkPos, (entityaccess) -> {
|
||||||
entityaccess.getPassengersAndSelf().forEach(this::unloadEntity);
|
entityaccess.getPassengersAndSelf().forEach(this::unloadEntity);
|
||||||
}, true); // CraftBukkit - add boolean for event call
|
}, true); // CraftBukkit - add boolean for event call
|
||||||
|
|
||||||
@@ -0,0 +0,0 @@ public class PersistentEntitySectionManager<T extends EntityAccess> implements A
|
@@ -0,0 +0,0 @@ public class PersistentEntitySectionManager<T extends EntityAccess> implements A
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user