Fix firestarter not respecting dual handed logic
@@ -121,7 +121,7 @@ public class FirestarterModifier extends InteractionModifier.NoLevels implements
@Override
public InteractionResult beforeBlockUse(IToolStackView tool, ModifierEntry modifier, UseOnContext context, InteractionSource source) {
- if (tool.isBroken()) {
+ if (tool.isBroken() || !tool.getDefinitionData().getModule(ToolModuleHooks.INTERACTION).canInteract(tool, modifier.getId(), source)) {
return InteractionResult.PASS;
}
if (context.getLevel().getBlockState(context.getClickedPos()).is(BlockTags.CANDLE_CAKES)) {
@@ -132,7 +132,7 @@ public class FirestarterModifier extends InteractionModifier.NoLevels implements
@Override
public InteractionResult afterBlockUse(IToolStackView tool, ModifierEntry modifier, UseOnContext context, InteractionSource source) {
- if (tool.isBroken()) {
+ if (tool.isBroken() || !tool.getDefinitionData().getModule(ToolModuleHooks.INTERACTION).canInteract(tool, modifier.getId(), source)) {
return InteractionResult.PASS;
}
Player player = context.getPlayer();
