Fix rotation breaking NBT data:

- Don't only copy NBT over if the original block had a Rot tag
This commit is contained in:
dordsor21 2020-03-30 16:01:50 +01:00
parent 3d8303a227
commit 76efbed4b2
2 changed files with 2 additions and 3 deletions

View File

@ -337,8 +337,8 @@ public class BlockTransformExtent extends ResettableExtent {
values.put("Rot", new ByteTag((byte) MCDirections.toRotation(newDirection)));
}
}
return new BaseBlock(transformed, tag);
}
return new BaseBlock(transformed, tag);
}
return transformed.toBaseBlock();
}

View File

@ -365,8 +365,7 @@ public class ForwardExtentCopy implements Operation {
};
}
copy = new CombinedBlockCopy(source, finalDest, copySrcFunc);
}
else {
} else {
copy = new SimpleBlockCopy(source, finalDest);
}
if (this.filterFunction != null) {