mirror of
https://github.com/Creators-of-Create/Create.git
synced 2024-11-14 14:34:16 +01:00
Merge pull request #6704 from IThundxr/patch-1
Disallow item extraction from crushing wheels with mech arms
This commit is contained in:
commit
067062ca62
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user