mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-15 20:23:53 -07:00
Add Configuration for finding Structures outside World Border (#10437)
This commit is contained in:
@@ -41,7 +41,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
|||||||
|
|
||||||
while (iterator.hasNext()) {
|
while (iterator.hasNext()) {
|
||||||
ChunkPos chunkcoordintpair = (ChunkPos) iterator.next();
|
ChunkPos chunkcoordintpair = (ChunkPos) iterator.next();
|
||||||
+ if (!world.getWorldBorder().isChunkInBounds(chunkcoordintpair.x, chunkcoordintpair.z)) { continue; } // Paper - Bound treasure maps to world border
|
+ if (!world.paperConfig().environment.locateStructuresOutsideWorldBorder && !world.getWorldBorder().isChunkInBounds(chunkcoordintpair.x, chunkcoordintpair.z)) { continue; } // Paper - Bound treasure maps to world border
|
||||||
|
|
||||||
blockposition_mutableblockposition.set(SectionPos.sectionToBlockCoord(chunkcoordintpair.x, 8), 32, SectionPos.sectionToBlockCoord(chunkcoordintpair.z, 8));
|
blockposition_mutableblockposition.set(SectionPos.sectionToBlockCoord(chunkcoordintpair.x, 8), 32, SectionPos.sectionToBlockCoord(chunkcoordintpair.z, 8));
|
||||||
double d1 = blockposition_mutableblockposition.distSqr(center);
|
double d1 = blockposition_mutableblockposition.distSqr(center);
|
||||||
|
@@ -1816,6 +1816,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
|||||||
+ public IntOr.Disabled netherCeilingVoidDamageHeight = IntOr.Disabled.DISABLED;
|
+ public IntOr.Disabled netherCeilingVoidDamageHeight = IntOr.Disabled.DISABLED;
|
||||||
+ public int maxFluidTicks = 65536;
|
+ public int maxFluidTicks = 65536;
|
||||||
+ public int maxBlockTicks = 65536;
|
+ public int maxBlockTicks = 65536;
|
||||||
|
+ public boolean locateStructuresOutsideWorldBorder = false;
|
||||||
+ }
|
+ }
|
||||||
+
|
+
|
||||||
+ public Spawn spawn;
|
+ public Spawn spawn;
|
||||||
|
Reference in New Issue
Block a user