mirror of
https://github.com/Xiao-MoMi/craft-engine.git
synced 2025-12-19 23:19:15 +00:00
Update BukkitWorldManager.java
This commit is contained in:
@@ -295,6 +295,7 @@ public class BukkitWorldManager implements WorldManager, Listener {
|
|||||||
Object chunkSource = FastNMS.INSTANCE.method$ServerLevel$getChunkSource(worldServer);
|
Object chunkSource = FastNMS.INSTANCE.method$ServerLevel$getChunkSource(worldServer);
|
||||||
Object levelChunk = FastNMS.INSTANCE.method$ServerChunkCache$getChunkAtIfLoadedMainThread(chunkSource, chunk.getX(), chunk.getZ());
|
Object levelChunk = FastNMS.INSTANCE.method$ServerChunkCache$getChunkAtIfLoadedMainThread(chunkSource, chunk.getX(), chunk.getZ());
|
||||||
Object[] sections = FastNMS.INSTANCE.method$ChunkAccess$getSections(levelChunk);
|
Object[] sections = FastNMS.INSTANCE.method$ChunkAccess$getSections(levelChunk);
|
||||||
|
synchronized (sections) {
|
||||||
for (int i = 0; i < ceSections.length; i++) {
|
for (int i = 0; i < ceSections.length; i++) {
|
||||||
CESection ceSection = ceSections[i];
|
CESection ceSection = ceSections[i];
|
||||||
Object section = sections[i];
|
Object section = sections[i];
|
||||||
@@ -318,6 +319,7 @@ public class BukkitWorldManager implements WorldManager, Listener {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
if (unsaved /*&& !FastNMS.INSTANCE.method$LevelChunk$isUnsaved(levelChunk)*/) {
|
if (unsaved /*&& !FastNMS.INSTANCE.method$LevelChunk$isUnsaved(levelChunk)*/) {
|
||||||
FastNMS.INSTANCE.method$LevelChunk$markUnsaved(levelChunk);
|
FastNMS.INSTANCE.method$LevelChunk$markUnsaved(levelChunk);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user