From 20a97c6b3925933601d9a317391f3958ec937fa1 Mon Sep 17 00:00:00 2001 From: simibubi <31564874+simibubi@users.noreply.github.com> Date: Mon, 8 Jun 2020 19:25:59 +0200 Subject: [PATCH] Crafter hotfix - Fixed crash when placing a crafter between two colliding rotation sources --- .../contraptions/components/crafter/MechanicalCrafterBlock.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/java/com/simibubi/create/content/contraptions/components/crafter/MechanicalCrafterBlock.java b/src/main/java/com/simibubi/create/content/contraptions/components/crafter/MechanicalCrafterBlock.java index 511bee84a..35b1c9e0e 100644 --- a/src/main/java/com/simibubi/create/content/contraptions/components/crafter/MechanicalCrafterBlock.java +++ b/src/main/java/com/simibubi/create/content/contraptions/components/crafter/MechanicalCrafterBlock.java @@ -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);