Fix drain container. Closes #2261
This commit is contained in:
parent
8fba862e2a
commit
3f0bd099d5
1 changed files with 1 additions and 0 deletions
|
@ -64,6 +64,7 @@ public class FluidUtils {
|
|||
ItemStack outputStack = inventory.getStack(outputSlot);
|
||||
|
||||
if (inputStack.isEmpty()) return false;
|
||||
if (!(inputStack.getItem() instanceof ItemFluidInfo)) return false;
|
||||
if (FluidUtils.isContainerEmpty(inputStack)) return false;
|
||||
if (outputStack.getCount() >= outputStack.getMaxCount()) return false;
|
||||
if (!outputStack.isEmpty() && !FluidUtils.isContainerEmpty(outputStack)) return false;
|
||||
|
|
Loading…
Reference in a new issue