From abcebb03e18aed5a405a2c0cc6cee2806f6f1dbd Mon Sep 17 00:00:00 2001 From: rbasamoyai Date: Sat, 28 Dec 2024 10:29:20 -0500 Subject: [PATCH] bug: Fixed Wired Fuze not exploding when placed on shell next to active signal --- .../munitions/big_cannon/FuzedProjectileBlock.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/main/java/rbasamoyai/createbigcannons/munitions/big_cannon/FuzedProjectileBlock.java b/src/main/java/rbasamoyai/createbigcannons/munitions/big_cannon/FuzedProjectileBlock.java index c6d7e7d6..aafb180f 100644 --- a/src/main/java/rbasamoyai/createbigcannons/munitions/big_cannon/FuzedProjectileBlock.java +++ b/src/main/java/rbasamoyai/createbigcannons/munitions/big_cannon/FuzedProjectileBlock.java @@ -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); @@ -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);