mirror of
https://github.com/EngineHub/WorldEdit.git
synced 2024-12-15 04:41:37 +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) {
|
||||
// Handle blocks which store their rotation in NBT
|
||||
LinTag<?> rotTag = tag.value().get("Rot");
|
||||
if (rotTag.value() instanceof Number number) {
|
||||
if (rotTag != null && rotTag.value() instanceof Number number) {
|
||||
int rot = number.intValue();
|
||||
|
||||
Direction direction = MCDirections.fromRotation(rot);
|
||||
|
Loading…
Reference in New Issue
Block a user