Fix for duplication bug SD-9118

This commit is contained in:
ceze88 2022-07-31 14:43:28 +02:00
parent cdf58e8db5
commit c93cdb5a33

View File

@ -124,7 +124,7 @@ public class BlockListeners implements Listener {
: 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();
//furnace.dropItems(); No need to drop items. dropItemNaturally() will drop the items inside the furnance
event.getBlock().setType(Material.AIR);
event.getBlock().getLocation().getWorld().dropItemNaturally(event.getBlock().getLocation(), item);