From ae7ed4667b20f1125b32d4e166e292401969bc53 Mon Sep 17 00:00:00 2001 From: CraftBukkit/Spigot Date: Thu, 24 Jun 2021 08:37:58 +1000 Subject: [PATCH] SPIGOT-6594: NPE at Bukkit.getServer().getGenerateStructures() By: md_5 --- .../src/main/java/org/bukkit/craftbukkit/CraftServer.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/paper-server/src/main/java/org/bukkit/craftbukkit/CraftServer.java b/paper-server/src/main/java/org/bukkit/craftbukkit/CraftServer.java index af881c80ca..19f3090909 100644 --- a/paper-server/src/main/java/org/bukkit/craftbukkit/CraftServer.java +++ b/paper-server/src/main/java/org/bukkit/craftbukkit/CraftServer.java @@ -609,7 +609,7 @@ public final class CraftServer implements Server { @Override public boolean getGenerateStructures() { - return this.getProperties().worldGenSettings.shouldGenerateMapFeatures(); + return this.getProperties().a(this.getServer().getCustomRegistry()).shouldGenerateMapFeatures(); } @Override