mirror of
https://hub.spigotmc.org/stash/scm/spigot/craftbukkit.git
synced 2025-08-21 05:44:33 +00:00
Add missing callWorldInitEvent on startup.
This commit is contained in:
parent
764c3f24ee
commit
402b177be4
1 changed files with 2 additions and 0 deletions
|
@ -208,6 +208,8 @@ public abstract class MinecraftServer implements Runnable, IMojangStatistics, IC
|
||||||
world.getWorld().getPopulators().addAll(gen.getDefaultPopulators(world.getWorld()));
|
world.getWorld().getPopulators().addAll(gen.getDefaultPopulators(world.getWorld()));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
this.server.getPluginManager().callEvent(new org.bukkit.event.world.WorldInitEvent(world.getWorld()));
|
||||||
|
|
||||||
world.addIWorldAccess(new WorldManager(this, world));
|
world.addIWorldAccess(new WorldManager(this, world));
|
||||||
if (!this.H()) {
|
if (!this.H()) {
|
||||||
world.getWorldData().setGameType(this.getGamemode());
|
world.getWorldData().setGameType(this.getGamemode());
|
||||||
|
|
Loading…
Add table
Reference in a new issue