mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2024-12-23 09:47:38 +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:
parent
3d8303a227
commit
76efbed4b2
@ -337,8 +337,8 @@ public class BlockTransformExtent extends ResettableExtent {
|
|||||||
values.put("Rot", new ByteTag((byte) MCDirections.toRotation(newDirection)));
|
values.put("Rot", new ByteTag((byte) MCDirections.toRotation(newDirection)));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return new BaseBlock(transformed, tag);
|
|
||||||
}
|
}
|
||||||
|
return new BaseBlock(transformed, tag);
|
||||||
}
|
}
|
||||||
return transformed.toBaseBlock();
|
return transformed.toBaseBlock();
|
||||||
}
|
}
|
||||||
|
@ -365,8 +365,7 @@ public class ForwardExtentCopy implements Operation {
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
copy = new CombinedBlockCopy(source, finalDest, copySrcFunc);
|
copy = new CombinedBlockCopy(source, finalDest, copySrcFunc);
|
||||||
}
|
} else {
|
||||||
else {
|
|
||||||
copy = new SimpleBlockCopy(source, finalDest);
|
copy = new SimpleBlockCopy(source, finalDest);
|
||||||
}
|
}
|
||||||
if (this.filterFunction != null) {
|
if (this.filterFunction != null) {
|
||||||
|
Loading…
Reference in New Issue
Block a user