File tree Expand file tree Collapse file tree
worldedit-core/src/main/java/com/sk89q/worldedit/function/block Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3030import com .sk89q .worldedit .util .Direction .Flag ;
3131import com .sk89q .worldedit .util .nbt .BinaryTag ;
3232import com .sk89q .worldedit .util .nbt .CompoundBinaryTag ;
33- import com .sk89q .worldedit .util .nbt .IntBinaryTag ;
33+ import com .sk89q .worldedit .util .nbt .NumberBinaryTag ;
3434import com .sk89q .worldedit .world .block .BaseBlock ;
3535
3636import static com .google .common .base .Preconditions .checkNotNull ;
@@ -93,8 +93,8 @@ private BaseBlock transformNbtData(BaseBlock state) {
9393 if (tag != null ) {
9494 // Handle blocks which store their rotation in NBT
9595 BinaryTag rotTag = tag .get ("Rot" );
96- if (rotTag instanceof IntBinaryTag ) {
97- int rot = ((IntBinaryTag ) rotTag ).value ();
96+ if (rotTag instanceof NumberBinaryTag ) {
97+ int rot = ((NumberBinaryTag ) rotTag ).intValue ();
9898
9999 Direction direction = MCDirections .fromRotation (rot );
100100
You can’t perform that action at this time.
0 commit comments