Skip to content

Commit

Permalink
fix breaking sf block with not unlocked item duping contents (#3976)
Browse files Browse the repository at this point in the history
  • Loading branch information
iTwins authored Sep 26, 2023
1 parent 37681ca commit 57a9fc6
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -141,15 +141,15 @@ public void onBlockBreak(BlockBreakEvent e) {
}
}

if (!e.isCancelled()) {
checkForSensitiveBlockAbove(e.getPlayer(), e.getBlock(), item);
List<ItemStack> drops = new ArrayList<>();

if (!item.getType().isAir()) {
int fortune = getBonusDropsWithFortune(item, e.getBlock());
List<ItemStack> drops = new ArrayList<>();
callToolHandler(e, item, fortune, drops);
}

if (!item.getType().isAir()) {
callToolHandler(e, item, fortune, drops);
}
if (!e.isCancelled()) {
checkForSensitiveBlockAbove(e.getPlayer(), e.getBlock(), item);

callBlockHandler(e, item, drops, sfItem);
dropItems(e, drops);
Expand Down

0 comments on commit 57a9fc6

Please sign in to comment.