From 8e686f3fd62056a89bd9b3514e7ab64d035456d1 Mon Sep 17 00:00:00 2001 From: YannickMG Date: Sun, 31 Dec 2023 09:46:50 -0500 Subject: [PATCH] Removed superfluous method call --- src/main/java/tconstruct/smeltery/blocks/LavaTankBlock.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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();