Fix off-by-one error in schematic pasting (#3160)

This commit is contained in:
Traks 2021-07-14 17:58:04 +02:00 committed by GitHub
parent cc60d50dd2
commit fe65a0c548
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -365,7 +365,7 @@ public abstract class SchematicHandler {
if (yy > 255 || yy < 0) {
continue;
}
for (int rz = 0; rz <= blockArrayClipboard.getDimensions().getZ(); rz++) {
for (int rz = 0; rz < blockArrayClipboard.getDimensions().getZ(); rz++) {
for (int rx = 0; rx < blockArrayClipboard.getDimensions().getX(); rx++) {
int xx = p1x + rx;
int zz = p1z + rz;