Fix drain container. Closes #2261

This commit is contained in:
drcrazy 2020-10-27 15:22:45 +03:00
parent 8fba862e2a
commit 3f0bd099d5

View file

@ -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;