Fix singleworlds

This commit is contained in:
dordsor21
2021-01-07 21:24:38 +00:00
committed by Alexander Söderberg
parent 7ac3f7ca03
commit 3cea734b9b
13 changed files with 71 additions and 34 deletions

View File

@ -32,6 +32,7 @@ import org.bukkit.Bukkit;
import org.bukkit.World;
import org.bukkit.WorldCreator;
import org.bukkit.WorldType;
import org.jetbrains.annotations.NotNull;
import javax.annotation.Nonnull;
import javax.annotation.Nullable;
@ -63,7 +64,7 @@ import java.util.List;
}
protected void setGenerator(@Nullable final String worldName, @Nullable final String generator) {
if (generator == null || worldName != null && worldName.contains(".")) {
if (generator == null) {
return;
}
File file = new File("bukkit.yml").getAbsoluteFile();