mirror of
https://github.com/StarWishsama/Slimefun4.git
synced 2024-09-19 19:25:48 +00:00
Fix #1558
This commit is contained in:
parent
9ca20379a2
commit
0c3884ca91
@ -65,11 +65,13 @@ public class ExplosivePickaxe extends SimpleSlimefunItem<BlockBreakHandler> impl
|
||||
SlimefunBlockHandler handler = SlimefunPlugin.getRegistry().getBlockHandlers().get(sfItem.getID());
|
||||
|
||||
if (handler != null) {
|
||||
allow = handler.onBreak(e.getPlayer(), e.getBlock(), sfItem, UnregisterReason.PLAYER_BREAK);
|
||||
allow = handler.onBreak(e.getPlayer(), b, sfItem, UnregisterReason.PLAYER_BREAK);
|
||||
}
|
||||
|
||||
if (allow) {
|
||||
drops.add(BlockStorage.retrieve(e.getBlock()));
|
||||
if (b.getType() == Material.AIR) {
|
||||
drops.add(BlockStorage.retrieve(b));
|
||||
}
|
||||
}
|
||||
}
|
||||
else if (b.getType() == Material.PLAYER_HEAD) {
|
||||
|
Loading…
Reference in New Issue
Block a user