Fix writing tiles to schematics

This commit is contained in:
Jesse Boyd 2016-08-15 10:09:05 +10:00
parent 8ab28115a4
commit fb9bdeca7d
1 changed files with 2 additions and 2 deletions

View File

@ -77,10 +77,10 @@ public class SchematicWriter implements ClipboardWriter {
int y = (int) point.y; int y = (int) point.y;
int z = (int) point.z; int z = (int) point.z;
if (this.x == x - 1 && this.y == y && this.z == z) { if (this.x == x - 1 && this.y == y && this.z == z) {
this.x++;
index++; index++;
x++;
} else { } else {
index = yarea[y] + zwidth[z] + x; index = yarea[this.y = y] + zwidth[this.z = z] + (this.x = x);
} }
int id = block.getId(); int id = block.getId();
blocks[index] = (byte) id; blocks[index] = (byte) id;