Skip to content

Commit

Permalink
disallow item extraction from crushing wheels with mech arms
Browse files Browse the repository at this point in the history
  • Loading branch information
IThundxr authored Jul 18, 2024
1 parent e322392 commit b6136dd
Showing 1 changed file with 12 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ public boolean canCreatePoint(Level level, BlockPos pos, BlockState state) {

@Override
public ArmInteractionPoint createPoint(Level level, BlockPos pos, BlockState state) {
return new TopFaceArmInteractionPoint(this, level, pos, state);
return new CrushingWheelPoint(this, level, pos, state);
}
}

Expand Down Expand Up @@ -712,4 +712,15 @@ public ItemStack insert(ItemStack stack, boolean simulate) {
}
}

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

0 comments on commit b6136dd

Please sign in to comment.