From b6136dd215670f3965f5386135fa2b3259be4648 Mon Sep 17 00:00:00 2001 From: IThundxr Date: Thu, 18 Jul 2024 09:17:28 -0400 Subject: [PATCH] disallow item extraction from crushing wheels with mech arms --- .../mechanicalArm/AllArmInteractionPointTypes.java | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/simibubi/create/content/kinetics/mechanicalArm/AllArmInteractionPointTypes.java b/src/main/java/com/simibubi/create/content/kinetics/mechanicalArm/AllArmInteractionPointTypes.java index 74336df50..12b95efcb 100644 --- a/src/main/java/com/simibubi/create/content/kinetics/mechanicalArm/AllArmInteractionPointTypes.java +++ b/src/main/java/com/simibubi/create/content/kinetics/mechanicalArm/AllArmInteractionPointTypes.java @@ -182,7 +182,7 @@ public class AllArmInteractionPointTypes { @Override public ArmInteractionPoint createPoint(Level level, BlockPos pos, BlockState state) { - return new TopFaceArmInteractionPoint(this, level, pos, state); + return new CrushingWheelPoint(this, level, pos, state); } } @@ -712,4 +712,15 @@ public class AllArmInteractionPointTypes { } } + public static class CrushingWheelPoint extends DepositOnlyArmInteractionPoint { + public CrushingWheelPoint(ArmInteractionPointType type, Level level, BlockPos pos, BlockState state) { + super(type, level, pos, state); + } + + @Override + protected Vec3 getInteractionPositionVector() { + return Vec3.atLowerCornerOf(pos) + .add(.5f, 1, .5f); + } + } }