mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-02 09:21:57 +01:00
Moved WORLD_LOAD event to after world is actually loaded
By: Drakia <Contact@TheDgtl.net>
This commit is contained in:
parent
fe15903b22
commit
6f8ecc04e5
1 changed files with 1 additions and 3 deletions
|
@ -319,7 +319,7 @@ public final class CraftServer implements Server {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
pluginManager.callEvent(new WorldLoadEvent(internal.getWorld()));
|
||||||
return internal.getWorld();
|
return internal.getWorld();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -333,8 +333,6 @@ public final class CraftServer implements Server {
|
||||||
|
|
||||||
protected void addWorld(World world) {
|
protected void addWorld(World world) {
|
||||||
worlds.put(world.getName().toLowerCase(), world);
|
worlds.put(world.getName().toLowerCase(), world);
|
||||||
|
|
||||||
pluginManager.callEvent(new WorldLoadEvent(world));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public Logger getLogger() {
|
public Logger getLogger() {
|
||||||
|
|
Loading…
Reference in a new issue