Fixed direction issues for 1.12.2 <

This commit is contained in:
stijnb1234 2020-02-02 16:26:52 +01:00
parent f6529ecf32
commit 6fa89ba03c

View file

@ -191,7 +191,7 @@ public class MoveLift implements Runnable {
state.setRawData(lib.getData()); state.setRawData(lib.getData());
} }
state.update(true); state.update(true);
if (block.getBlockData() instanceof Directional) { if (!XMaterial.isNewVersion()) {
DirectionUtil.setDirection(block, lib.getFace()); DirectionUtil.setDirection(block, lib.getFace());
} }
lb = lift.getBlocks().first(); lb = lift.getBlocks().first();
@ -234,7 +234,7 @@ public class MoveLift implements Runnable {
state.setRawData(lib.getData()); state.setRawData(lib.getData());
} }
state.update(true); state.update(true);
if (block.getBlockData() instanceof Directional) { if (!XMaterial.isNewVersion()) {
DirectionUtil.setDirection(block, lib.getFace()); DirectionUtil.setDirection(block, lib.getFace());
} }
lift.getBlocks().add(lib); lift.getBlocks().add(lib);
@ -322,7 +322,7 @@ public class MoveLift implements Runnable {
state.setRawData(lib.getData()); state.setRawData(lib.getData());
} }
state.update(true); state.update(true);
if (block.getBlockData() instanceof Directional) { if (!XMaterial.isNewVersion()) {
DirectionUtil.setDirection(block, lib.getFace()); DirectionUtil.setDirection(block, lib.getFace());
} }
} }
@ -345,7 +345,7 @@ public class MoveLift implements Runnable {
state.setRawData(lib.getData()); state.setRawData(lib.getData());
} }
state.update(true); state.update(true);
if (block.getBlockData() instanceof Directional) { if (!XMaterial.isNewVersion()) {
DirectionUtil.setDirection(block, lib.getFace()); DirectionUtil.setDirection(block, lib.getFace());
} }
lift.getBlocks().add(lib); lift.getBlocks().add(lib);