Fix loading secondary worlds

This commit is contained in:
md_5 2019-04-27 20:09:40 +10:00
parent 5e0b63c1a0
commit a875ee4160

View file

@ -351,7 +351,7 @@
BlockPosition blockposition = worldserver.getSpawn();
worldloadlistener.a(new ChunkCoordIntPair(blockposition));
@@ -379,16 +543,20 @@
@@ -379,17 +543,21 @@
chunkproviderserver.addTicket(TicketType.START, new ChunkCoordIntPair(blockposition), 11, Unit.INSTANCE);
while (chunkproviderserver.b() != 441) {
@ -369,6 +369,7 @@
-
- while (iterator.hasNext()) {
- DimensionManager dimensionmanager = (DimensionManager) iterator.next();
- ForcedChunk forcedchunk = (ForcedChunk) this.getWorldServer(dimensionmanager).getWorldPersistentData().b(ForcedChunk::new, "chunks");
+ // CraftBukkit start
+ // this.nextTick += 100L;
+ this.executeModerately();
@ -376,10 +377,11 @@
+
+ if (true) {
+ DimensionManager dimensionmanager = worldserver.worldProvider.getDimensionManager();
+ ForcedChunk forcedchunk = (ForcedChunk) worldserver.getWorldPersistentData().b(ForcedChunk::new, "chunks");
+ // CraftBukkit end
ForcedChunk forcedchunk = (ForcedChunk) this.getWorldServer(dimensionmanager).getWorldPersistentData().b(ForcedChunk::new, "chunks");
if (forcedchunk != null) {
WorldServer worldserver1 = this.getWorldServer(dimensionmanager);
@@ -404,10 +572,17 @@
}
}