1
0
mirror of https://github.com/plexusorg/Plex-FAWE.git synced 2025-01-12 10:44:00 +00:00

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
worldedit-core/src/main/java/com/sk89q/worldedit
extent/transform
function/operation

@ -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();
}

@ -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) {