Make sinistral respect brokeness
@@ -22,7 +22,7 @@ public class SinistralModifier extends Modifier implements GeneralInteractionMod
@Override
public InteractionResult onToolUse(IToolStackView tool, ModifierEntry modifier, Player player, InteractionHand hand, InteractionSource source) {
- if (source == InteractionSource.LEFT_CLICK && hand == InteractionHand.MAIN_HAND) {
+ if (source == InteractionSource.LEFT_CLICK && hand == InteractionHand.MAIN_HAND && !tool.isBroken()) {
CompoundTag heldAmmo = tool.getPersistentData().getCompound(ModifiableCrossbowItem.KEY_CROSSBOW_AMMO);
if (!heldAmmo.isEmpty()) {
ModifiableCrossbowItem.fireCrossbow(tool, player, hand, heldAmmo);
