Skip to content

Commit

Permalink
Merge pull request Creators-of-Create#6704 from IThundxr/patch-1
Browse files Browse the repository at this point in the history
Disallow item extraction from crushing wheels with mech arms
  • Loading branch information
simibubi authored Jul 25, 2024
2 parents b90e11c + b6136dd commit 067062c
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 067062c

Please sign in to comment.