diff --git a/src/main/java/tconstruct/smeltery/blocks/LavaTankBlock.java b/src/main/java/tconstruct/smeltery/blocks/LavaTankBlock.java index 120177a0..3e0e9ec3 100644 --- a/src/main/java/tconstruct/smeltery/blocks/LavaTankBlock.java +++ b/src/main/java/tconstruct/smeltery/blocks/LavaTankBlock.java @@ -150,8 +150,9 @@ public class LavaTankBlock extends BlockContainer { int amount = logic.fill(ForgeDirection.UNKNOWN, liquid, false); if (amount == liquid.amount) { logic.fill(ForgeDirection.UNKNOWN, liquid, true); - if (!entityplayer.capabilities.isCreativeMode) - replaceHeldItem(entityplayer, getEmptyContainer(entityplayer.inventory.getCurrentItem())); + if (!entityplayer.capabilities.isCreativeMode) { + replaceHeldItem(entityplayer, getEmptyContainer(current)); + } // update entityplayer.inventoryContainer.detectAndSendChanges();