Skip to content

Commit

Permalink
Fix checking the wrong stack and then voiding extra items when intera…
Browse files Browse the repository at this point in the history
…cting with a fluid tank using a stack of filled fluid handlers #7104
  • Loading branch information
pupnewfster committed Apr 16, 2021
1 parent 36312a7 commit b9bcbdd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/mekanism/common/util/FluidUtils.java
Expand Up @@ -125,7 +125,7 @@ public static boolean handleTankInteraction(PlayerEntity player, Hand hand, Item
if (player.isCreative()) {
filled = true;
} else if (!container.isEmpty()) {
if (container.getCount() == 1) {
if (itemStack.getCount() == 1) {
player.setItemInHand(hand, container);
filled = true;
} else if (player.inventory.add(container)) {
Expand Down

0 comments on commit b9bcbdd

Please sign in to comment.