Skip to content

Commit

Permalink
Ender tank voiding fluids in gt tank input slot fix (#3790)
Browse files Browse the repository at this point in the history
  • Loading branch information
Shadow1590 authored Jan 12, 2025
1 parent a63ddc2 commit b1e6718
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/gregtech/api/util/GTUtility.java
Original file line number Diff line number Diff line change
Expand Up @@ -1941,7 +1941,7 @@ public static FluidStack getFluidForFilledItem(ItemStack aStack, boolean aCheckI
if (isStackInvalid(aStack)) return null;
if (aCheckIFluidContainerItems && aStack.getItem() instanceof IFluidContainerItem
&& ((IFluidContainerItem) aStack.getItem()).getCapacity(aStack) > 0)
return ((IFluidContainerItem) aStack.getItem()).drain(copyAmount(1, aStack), Integer.MAX_VALUE, true);
return ((IFluidContainerItem) aStack.getItem()).drain(copyAmount(1, aStack), Integer.MAX_VALUE, false);
FluidContainerData tData = sFilledContainerToData.get(new GTItemStack(aStack));
return tData == null ? null : tData.fluid.copy();
}
Expand Down

0 comments on commit b1e6718

Please sign in to comment.