Skip to content

Commit 00e02bd

Browse files
committed
Fix pocket schematics
1 parent 02c7c61 commit 00e02bd

17 files changed

+1
-1
lines changed

src/main/java/com/zixiken/dimdoors/shared/tools/PocketSchematicGenerator.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ private static Schematic generatePocketSchematic(String baseName, int pocketSize
136136
for (int x = 0; x < size; x++) {
137137
for (int y = 0; y < size; y++) {
138138
for (int z = 0; z < size; z++) {
139-
int layer = Collections.min(Arrays.asList(x, y, z, size - x, size - y, size - z));
139+
int layer = Collections.min(Arrays.asList(x, y, z, size - 1 - x, size - 1 - y, size - 1 - z));
140140
if (layer == 0) {
141141
schematic.blockData[x][y][z] = 1; // outer wall
142142
} else if (layer < 5) {
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

0 commit comments

Comments
 (0)