SPIGOT-5901: Structures are generated in all worlds based on the setting for the main world

By: md_5 <git@md-5.net>
This commit is contained in:
CraftBukkit/Spigot
2020-06-30 10:29:41 +10:00
parent 455c5d71c4
commit 4d5f3cf4e9
2 changed files with 29 additions and 0 deletions

View File

@@ -499,6 +499,15 @@
++j;
}
}
@@ -1074,7 +1274,7 @@
@Nullable
public BlockPosition a(StructureGenerator<?> structuregenerator, BlockPosition blockposition, int i, boolean flag) {
- return !this.server.getSaveData().getGeneratorSettings().shouldGenerateMapFeatures() ? null : this.getChunkProvider().getChunkGenerator().findNearestMapFeature(this, structuregenerator, blockposition, i, flag);
+ return !this.worldDataServer.getGeneratorSettings().shouldGenerateMapFeatures() ? null : this.getChunkProvider().getChunkGenerator().findNearestMapFeature(this, structuregenerator, blockposition, i, flag); // CraftBukkit
}
@Nullable
@@ -1105,7 +1305,13 @@
@Override
public WorldMap a(String s) {