diff --git a/build.gradle b/build.gradle index e897bfe2..ad5001ee 100644 --- a/build.gradle +++ b/build.gradle @@ -28,7 +28,7 @@ ext { date = git.head().date.format("yy.MM.dd") revision = "-${git.head().abbreviatedId}" parents = git.head().parentIds; - index = -92; // Offset to match CI + index = -93; // Offset to match CI int major, minor, patch; major = minor = patch = 0; for (;parents != null && !parents.isEmpty();index++) { diff --git a/core/src/main/java/com/boydti/fawe/object/schematic/StructureFormat.java b/core/src/main/java/com/boydti/fawe/object/schematic/StructureFormat.java index 30c7d902..ec7eb848 100644 --- a/core/src/main/java/com/boydti/fawe/object/schematic/StructureFormat.java +++ b/core/src/main/java/com/boydti/fawe/object/schematic/StructureFormat.java @@ -184,6 +184,7 @@ public class StructureFormat implements ClipboardReader, ClipboardWriter { ArrayList> palette = new ArrayList<>(); for (Vector point : region) { BaseBlock block = clipboard.getBlock(point); + if (block.getId() == 217) block = FaweCache.getBlock(0, 0); // Void int combined = FaweCache.getCombined(block); int index = indexes[combined]; if (index != -1) { @@ -221,7 +222,9 @@ public class StructureFormat implements ClipboardReader, ClipboardWriter { Vector min = region.getMinimumPoint(); for (Vector point : region) { BaseBlock block = clipboard.getBlock(point); + if (block.getId() == 217) block = FaweCache.getBlock(0, 0); // Void int combined = FaweCache.getCombined(block); + if (combined >> 4 == 217) combined = 0; // Structure void int index = indexes[combined]; List pos = Arrays.asList((int) (point.getX() - min.getX()), (int) (point.getY() - min.getY()), (int) (point.getZ() - min.getZ())); if (!block.hasNbtData()) {