Skip to content

Commit 5f24520

Browse files
committed
Pass empty string instead of null for generator type
1 parent 608cb86 commit 5f24520

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/main/java/org/mvplugins/multiverse/core/world/generators/GeneratorProvider.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ private void loadPluginGenerators() {
9595
private boolean testIsGeneratorPlugin(Plugin plugin) {
9696
String worldName = Bukkit.getWorlds().stream().findFirst().map(World::getName).orElse("world");
9797
try {
98-
return plugin.getDefaultWorldGenerator(worldName, null) != null;
98+
return plugin.getDefaultWorldGenerator(worldName, "") != null;
9999
} catch (UnsupportedOperationException e) {
100100
// Some plugins throw this if they don't support world generation
101101
return false;

0 commit comments

Comments
 (0)