1
mirror of https://github.com/StarWishsama/Slimefun4.git synced 2024-09-19 19:25:48 +00:00

fix breaking sf block with not unlocked item duping contents (#3976)

This commit is contained in:
Jeroen 2023-09-26 12:26:33 +02:00 committed by GitHub
parent 37681caf6b
commit 57a9fc6836
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -141,16 +141,16 @@ public class BlockListener implements Listener {
}
}
List<ItemStack> drops = new ArrayList<>();
if (!item.getType().isAir()) {
int fortune = getBonusDropsWithFortune(item, e.getBlock());
callToolHandler(e, item, fortune, drops);
}
if (!e.isCancelled()) {
checkForSensitiveBlockAbove(e.getPlayer(), e.getBlock(), item);
int fortune = getBonusDropsWithFortune(item, e.getBlock());
List<ItemStack> drops = new ArrayList<>();
if (!item.getType().isAir()) {
callToolHandler(e, item, fortune, drops);
}
callBlockHandler(e, item, drops, sfItem);
dropItems(e, drops);
}