Merge pull request #6704 from IThundxr/patch-1

Disallow item extraction from crushing wheels with mech arms
This commit is contained in:
simibubi 2024-07-25 11:03:13 +02:00 committed by GitHub
commit 067062ca62
Failed to generate hash of commit

View file

@ -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);
}
}
}