mirror of
https://github.com/SquidDev-CC/CC-Tweaked
synced 2026-11-24 08:07:15 +00:00
Remove redundant call to playerWillDestroy
Somewhere between 1.20.1 and 1.21.1 it looks like this call is no longer required. Fixes #2531.
This commit is contained in:
1 file changed
-1
-1
@@ -96,7 +96,6 @@ public class CableBlock extends Block implements SimpleWaterloggedBlock, EntityB
|
||||
|
||||
@ForgeOverride
|
||||
public boolean onDestroyedByPlayer(BlockState state, Level world, BlockPos pos, Player player, boolean willHarvest, FluidState fluid) {
|
||||
playerWillDestroy(world, pos, state, player);
|
||||
if (onCustomDestroyBlock(state, world, pos, player)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user