From e6bccf6bfdbd59deb11734433cc85349c01b1e20 Mon Sep 17 00:00:00 2001 From: t00thpick1 Date: Tue, 10 Dec 2013 12:13:08 -0500 Subject: [PATCH] Re-add WorldLoadEvent lost in 314051580a0a8e4745d3a539f232b552916eb302 Fixes BUKKIT-5125 In the 1.4.2 update for CraftBukkit, a missed diff resulted in the WorldLoadEvent no longer being fired for the worlds loaded on startup. --- src/main/java/net/minecraft/server/MinecraftServer.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main/java/net/minecraft/server/MinecraftServer.java b/src/main/java/net/minecraft/server/MinecraftServer.java index c1c4aa061d..c78e47bdbf 100644 --- a/src/main/java/net/minecraft/server/MinecraftServer.java +++ b/src/main/java/net/minecraft/server/MinecraftServer.java @@ -311,6 +311,10 @@ public abstract class MinecraftServer implements ICommandListener, Runnable, IMo } } } + + for (WorldServer world : this.worlds) { + this.server.getPluginManager().callEvent(new org.bukkit.event.world.WorldLoadEvent(world.getWorld())); + } // CraftBukkit end this.m(); }