Skip to content

Commit

Permalink
Removed superfluous method call
Browse files Browse the repository at this point in the history
  • Loading branch information
YannickMG authored and Dream-Master committed Jan 13, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent ae7a5e2 commit 8e686f3
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/main/java/tconstruct/smeltery/blocks/LavaTankBlock.java
Original file line number Diff line number Diff line change
@@ -150,8 +150,9 @@ public boolean onBlockActivated(World world, int i, int j, int k, EntityPlayer e
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();

0 comments on commit 8e686f3

Please sign in to comment.