Removed superfluous method call

This commit is contained in:
YannickMG authored and Martin Robertz committed 2024-01-13 10:31:06 +01:00
1 parent ae7a5e22d6
commit 8e686f3fd6
1 file changed
+3 -2
@@ -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();