diff --git a/Spigot-Server-Patches/0375-Optimize-Server-World-Map.patch b/Spigot-Server-Patches/0375-Optimize-Server-World-Map.patch index 92953d4f25..c401f35759 100644 --- a/Spigot-Server-Patches/0375-Optimize-Server-World-Map.patch +++ b/Spigot-Server-Patches/0375-Optimize-Server-World-Map.patch @@ -1,4 +1,4 @@ -From a986a6ac3b035444524be7214677b83c7094fc5d Mon Sep 17 00:00:00 2001 +From c0d6698eb4af5eb4e477740679c2ebcf0b5cd5e0 Mon Sep 17 00:00:00 2001 From: Aikar Date: Mon, 17 Sep 2018 23:37:31 -0400 Subject: [PATCH] Optimize Server World Map @@ -217,7 +217,7 @@ index 0000000000..af9e4455c6 + } +} diff --git a/src/main/java/net/minecraft/server/MinecraftServer.java b/src/main/java/net/minecraft/server/MinecraftServer.java -index fb62320310..2912e9ec68 100644 +index fb62320310..98d182fdb8 100644 --- a/src/main/java/net/minecraft/server/MinecraftServer.java +++ b/src/main/java/net/minecraft/server/MinecraftServer.java @@ -87,7 +87,7 @@ public abstract class MinecraftServer implements IAsyncTaskHandler, IMojangStati @@ -229,6 +229,15 @@ index fb62320310..2912e9ec68 100644 private PlayerList s; private boolean isRunning = true; private boolean isRestarting = false; // Paper - flag to signify we're attempting to restart +@@ -550,7 +550,7 @@ public abstract class MinecraftServer implements IAsyncTaskHandler, IMojangStati + } + } + +- for (WorldServer world : this.getWorlds()) { ++ for (WorldServer world : com.google.common.collect.Lists.newArrayList(this.getWorlds())) { // Paper - avoid como if 1 world triggers another world + this.server.getPluginManager().callEvent(new org.bukkit.event.world.WorldLoadEvent(world.getWorld())); + } + // CraftBukkit end -- 2.19.0