Fixes #3767: Fluid Annihilation plane too strict about leftover (#3872)

This commit is contained in:
yueh
2018-12-23 23:33:15 +01:00
committed by GitHub
parent 0f0af2349b
commit f2f48a8d59
@@ -304,7 +304,8 @@ public class PartFluidAnnihilationPlane extends PartBasicState implements IGridT
{
return false;
}
return inv.injectItems( stack, Actionable.SIMULATE, this.mySrc ) == null;
final IAEFluidStack leftOver = inv.injectItems( stack, Actionable.SIMULATE, this.mySrc );
return leftOver == null || leftOver.getStackSize() == 0;
}
}
catch( final GridAccessException e )