SPIGOT-6594: NPE at Bukkit.getServer().getGenerateStructures()

By: md_5 <git@md-5.net>
This commit is contained in:
CraftBukkit/Spigot 2021-06-24 08:37:58 +10:00
parent a91dc63398
commit ae7ed4667b

View File

@ -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