[CI-SKIP] Cleanup
This commit is contained in:
@@ -119,14 +119,10 @@ public abstract class MixinMinecraftServer {
|
|||||||
executor.submit(() -> prepareChunks(world, fIndex), null);
|
executor.submit(() -> prepareChunks(world, fIndex), null);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (WorldLoadEvent.getHandlerList().getRegisteredListeners().length == 0) {
|
for (WorldServer world : this.worlds) {
|
||||||
for (WorldServer world : this.worlds) {
|
if (world.getWorld().getKeepSpawnInMemory()) executor.take();
|
||||||
if (world.getWorld().getKeepSpawnInMemory()) executor.take();
|
}
|
||||||
}
|
if (WorldLoadEvent.getHandlerList().getRegisteredListeners().length != 0) {
|
||||||
} else {
|
|
||||||
for (WorldServer world : this.worlds) {
|
|
||||||
if (world.getWorld().getKeepSpawnInMemory()) executor.take();
|
|
||||||
}
|
|
||||||
for (WorldServer world : this.worlds) {
|
for (WorldServer world : this.worlds) {
|
||||||
this.server.getPluginManager().callEvent(new WorldLoadEvent(world.getWorld()));
|
this.server.getPluginManager().callEvent(new WorldLoadEvent(world.getWorld()));
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user