mirror of
https://github.com/EngineHub/WorldEdit.git
synced 2025-03-07 13:48:00 +08:00
Fixed clipboards failing to paste when a block has NBT data (#2198)
This commit is contained in:
parent
4267fabd3d
commit
0b6dcb1fb7
@ -92,7 +92,7 @@ private BaseBlock transformNbtData(BaseBlock state) {
|
|||||||
if (tag != null) {
|
if (tag != null) {
|
||||||
// Handle blocks which store their rotation in NBT
|
// Handle blocks which store their rotation in NBT
|
||||||
LinTag<?> rotTag = tag.value().get("Rot");
|
LinTag<?> rotTag = tag.value().get("Rot");
|
||||||
if (rotTag.value() instanceof Number number) {
|
if (rotTag != null && rotTag.value() instanceof Number number) {
|
||||||
int rot = number.intValue();
|
int rot = number.intValue();
|
||||||
|
|
||||||
Direction direction = MCDirections.fromRotation(rot);
|
Direction direction = MCDirections.fromRotation(rot);
|
||||||
|
Loading…
Reference in New Issue
Block a user