Don't generate structures in flat world

This commit is contained in:
kaboom 2021-10-23 04:26:10 +03:00
parent 192daa0a9b
commit 6ba24f5edb

View file

@ -104,7 +104,9 @@ public final class Main extends JavaPlugin {
this.getServer().getPluginManager().registerEvents(new ServerTick(), this);
/* Custom worlds */
this.getServer().createWorld(new WorldCreator("world_flatlands").type(WorldType.FLAT));
this.getServer().createWorld(
new WorldCreator("world_flatlands").generateStructures(false).type(WorldType.FLAT)
);
}
@Override