Crafter hotfix

- Fixed crash when placing a crafter between two colliding rotation sources
This commit is contained in:
simibubi 2020-06-08 19:25:59 +02:00
parent 285cb52894
commit 20a97c6b39

View file

@ -245,6 +245,8 @@ public class MechanicalCrafterBlock extends HorizontalKineticBlock implements IT
}
public static Direction getTargetDirection(BlockState state) {
if (!AllBlocks.MECHANICAL_CRAFTER.has(state))
return Direction.UP;
Direction facing = state.get(HORIZONTAL_FACING);
Pointing point = state.get(POINTING);
Vec3d targetVec = new Vec3d(0, 1, 0);