merging structures to 1.15

This commit is contained in:
gnembon committed 2020-01-21 01:56:56 -04:00
1 parent 145bcf1b3c
commit 81e0d733f7
3 files changed
+7 -10

No files matched your search

@@ -1481,7 +1481,7 @@ public class CarpetExpression
String structureName = FeatureGenerator.buildingToStructure.get(simpleStructureName);
Value[] result = new Value[]{Value.NULL};
((CarpetContext) c).s.getMinecraftServer().executeSync(() ->
((CarpetContext) c).s.getMinecraftServer().submitAndJoin(() ->
{
Map<String, StructureStart> structures = world.getChunk(pos).getStructureStarts();
if (lv.size() == locator.offset + 1)
@@ -1502,7 +1502,7 @@ public class CarpetExpression
}
StructureStart start = structures.get(structureName);
ChunkPos structureChunkPos = new ChunkPos(start.getChunkX(), start.getChunkZ());
MutableIntBoundingBox box = start.getBoundingBox();
BlockBox box = start.getBoundingBox();
for (int chx = box.minX / 16; chx <= box.maxX / 16; chx++)
{
for (int chz = box.minZ / 16; chz <= box.maxZ / 16; chz++)