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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user