mirror of
https://github.com/StarWishsama/Slimefun4.git
synced 2024-09-20 03:35:51 +00:00
commit
db5e7e5fbd
@ -65,11 +65,13 @@ public class ExplosivePickaxe extends SimpleSlimefunItem<BlockBreakHandler> impl
|
|||||||
SlimefunBlockHandler handler = SlimefunPlugin.getRegistry().getBlockHandlers().get(sfItem.getID());
|
SlimefunBlockHandler handler = SlimefunPlugin.getRegistry().getBlockHandlers().get(sfItem.getID());
|
||||||
|
|
||||||
if (handler != null) {
|
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) {
|
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) {
|
else if (b.getType() == Material.PLAYER_HEAD) {
|
||||||
|
Loading…
Reference in New Issue
Block a user