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:
parent
37681caf6b
commit
57a9fc6836
@ -141,16 +141,16 @@ public class BlockListener implements Listener {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!e.isCancelled()) {
|
|
||||||
checkForSensitiveBlockAbove(e.getPlayer(), e.getBlock(), item);
|
|
||||||
|
|
||||||
int fortune = getBonusDropsWithFortune(item, e.getBlock());
|
|
||||||
List<ItemStack> drops = new ArrayList<>();
|
List<ItemStack> drops = new ArrayList<>();
|
||||||
|
|
||||||
if (!item.getType().isAir()) {
|
if (!item.getType().isAir()) {
|
||||||
|
int fortune = getBonusDropsWithFortune(item, e.getBlock());
|
||||||
callToolHandler(e, item, fortune, drops);
|
callToolHandler(e, item, fortune, drops);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!e.isCancelled()) {
|
||||||
|
checkForSensitiveBlockAbove(e.getPlayer(), e.getBlock(), item);
|
||||||
|
|
||||||
callBlockHandler(e, item, drops, sfItem);
|
callBlockHandler(e, item, drops, sfItem);
|
||||||
dropItems(e, drops);
|
dropItems(e, drops);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user