diff --git a/src/main/java/io/github/thebusybiscuit/slimefun4/implementation/handlers/SimpleBlockBreakHandler.java b/src/main/java/io/github/thebusybiscuit/slimefun4/implementation/handlers/SimpleBlockBreakHandler.java index 0122d13390..e5a7336e6e 100644 --- a/src/main/java/io/github/thebusybiscuit/slimefun4/implementation/handlers/SimpleBlockBreakHandler.java +++ b/src/main/java/io/github/thebusybiscuit/slimefun4/implementation/handlers/SimpleBlockBreakHandler.java @@ -10,9 +10,12 @@ import org.bukkit.inventory.ItemStack; import io.github.thebusybiscuit.slimefun4.api.events.AndroidMineEvent; +import io.github.thebusybiscuit.slimefun4.api.items.SlimefunItem; import io.github.thebusybiscuit.slimefun4.core.handlers.BlockBreakHandler; import io.github.thebusybiscuit.slimefun4.implementation.items.androids.MinerAndroid; +import me.mrCookieSlime.Slimefun.api.BlockStorage; + /** * This simple implementation of {@link BlockBreakHandler} will execute the same code * for when the {@link Block} is broken by a {@link Player}, by a {@link MinerAndroid} or an explosion. @@ -54,6 +57,10 @@ public void onAndroidBreak(AndroidMineEvent e) { @Override public void onExplode(Block b, List drops) { onBlockBreak(b); + SlimefunItem sfItem = BlockStorage.check(b); + if (sfItem != null) { + drops.addAll(sfItem.getDrops()); + } } }