mirror of
https://github.com/Creators-of-Create/Create.git
synced 2024-12-27 23:47:38 +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
1 changed files with 12 additions and 1 deletions
|
@ -182,7 +182,7 @@ public class AllArmInteractionPointTypes {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public ArmInteractionPoint createPoint(Level level, BlockPos pos, BlockState state) {
|
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 a new issue