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

This commit is contained in:
md_5 2021-06-24 08:37:58 +10:00
parent 295ab080d3
commit f81f49940f
No known key found for this signature in database
GPG Key ID: E8E901AC7C617C11

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