From ebbc7a3349cb0c93cd3caecbcbb07bf8f82f2be7 Mon Sep 17 00:00:00 2001 From: nivcoo <36514752+nivcoo@users.noreply.github.com> Date: Mon, 15 Aug 2022 17:54:55 +0200 Subject: [PATCH] improv. rollback change --- .../java/com/songoda/epicfurnaces/listeners/BlockListeners.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/songoda/epicfurnaces/listeners/BlockListeners.java b/src/main/java/com/songoda/epicfurnaces/listeners/BlockListeners.java index d24dbf5..7e9173d 100644 --- a/src/main/java/com/songoda/epicfurnaces/listeners/BlockListeners.java +++ b/src/main/java/com/songoda/epicfurnaces/listeners/BlockListeners.java @@ -124,7 +124,7 @@ public void onBlockBreak(BlockBreakEvent event) { : block.getType(), level, furnace.getUses()); // By cancelling the event we destroy any chance of items dropping form the furnace. This fixes the problem. - //furnace.dropItems(); No need to drop items. dropItemNaturally() will drop the items inside the furnance + furnace.dropItems(); event.getBlock().setType(Material.AIR); event.getBlock().getLocation().getWorld().dropItemNaturally(event.getBlock().getLocation(), item);