Skip to content

Commit

Permalink
bug: Fixed Wired Fuze not exploding when placed on shell next to acti…
Browse files Browse the repository at this point in the history
…ve signal
  • Loading branch information
rbasamoyai committed Dec 30, 2024
1 parent 800eee7 commit abcebb0
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,9 @@ public InteractionResult use(BlockState state, Level level, BlockPos pos, Player
}
}
fuzedBlock.notifyUpdate();
if (!level.getBlockTicks().willTickThisTick(pos, this)) {
level.scheduleTick(pos, this, 0);
}
}
level.playSound(player, pos, SoundEvents.ITEM_FRAME_REMOVE_ITEM, SoundSource.NEUTRAL, 1.0f, 1.0f);
return InteractionResult.sidedSuccess(level.isClientSide);
Expand All @@ -123,6 +126,9 @@ public InteractionResult use(BlockState state, Level level, BlockPos pos, Player
copy.setCount(1);
fuzedBlock.setItem(slot, copy);
fuzedBlock.notifyUpdate();
if (!level.getBlockTicks().willTickThisTick(pos, this)) {
level.scheduleTick(pos, this, 0);
}
}
level.playSound(null, pos, SoundEvents.ITEM_FRAME_ADD_ITEM, SoundSource.NEUTRAL, 1.0f, 1.0f);
return InteractionResult.sidedSuccess(level.isClientSide);
Expand Down

0 comments on commit abcebb0

Please sign in to comment.