mirror of
https://github.com/PaperMC/Paper.git
synced 2024-11-23 02:55:47 +01:00
Fix loading secondary worlds
This commit is contained in:
parent
5e0b63c1a0
commit
a875ee4160
@ -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 @@
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user