Skip to content

Commit

Permalink
Fix firestarter not respecting dual handed logic
Browse files Browse the repository at this point in the history
  • Loading branch information
KnightMiner committed Feb 4, 2023
1 parent 676973d commit 0bb59bb
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ private static boolean ignite(IToolStackView tool, Level world, BlockPos pos, Bl

@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)) {
Expand All @@ -132,7 +132,7 @@ public InteractionResult beforeBlockUse(IToolStackView tool, ModifierEntry modif

@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();
Expand Down

0 comments on commit 0bb59bb

Please sign in to comment.