Always set the generator

This commit is contained in:
Alexander Söderberg 2020-05-16 21:29:44 +02:00 committed by Alexander Söderberg
parent 29e0479081
commit 5ae70743b1

View file

@ -43,7 +43,7 @@ public class MultiverseWorldManager extends BukkitWorldManager {
// Then we send the console command
final StringBuilder commandBuilder = new StringBuilder("mv create ")
.append(worldName).append(" normal");
if (generator != null && !generator.isEmpty()) {
if (generator != null) {
commandBuilder.append(" -g ").append(generator);
}
Bukkit.getServer().dispatchCommand(Bukkit.getServer().getConsoleSender(), commandBuilder.toString());