Binnie's Mods

Binnie's Mods

26M Downloads

Exception when specifying null fluid for canDrain and canFill.

Xytabich opened this issue ยท 0 comments

commented

Occurs when using MineFactoryReloaded pipes:
java.lang.IllegalArgumentException: Cannot create a fluidstack from a null fluid at net.minecraftforge.fluids.FluidStack.<init>(FluidStack.java:36) ~[FluidStack.class:1.7.10-1614.58] at binnie.core.machines.inventory.ComponentTankContainer.canDrain(ComponentTankContainer.java:180) ~[ComponentTankContainer.class:?] at binnie.core.machines.base.TileEntityMachineBase.canDrain(TileEntityMachineBase.java:183) ~[TileEntityMachineBase.class:?] at powercrystals.minefactoryreloaded.tile.transport.TileEntityPlasticPipe.extract(TileEntityPlasticPipe.java:495) ~[TileEntityPlasticPipe.class:?] at powercrystals.minefactoryreloaded.tile.transport.FluidNetwork.doGridPreUpdate(FluidNetwork.java:181) ~[FluidNetwork.class:?] at powercrystals.minefactoryreloaded.net.GridTickHandler.tickStart(GridTickHandler.java:127) ~[GridTickHandler.class:?] at powercrystals.minefactoryreloaded.net.GridTickHandler.tick(GridTickHandler.java:84) ~[GridTickHandler.class:?] at cpw.mods.fml.common.eventhandler.ASMEventHandler_237_GridTickHandler_tick_ServerTickEvent.invoke(.dynamic) ~[?:?] at cpw.mods.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:54) ~[ASMEventHandler.class:1.7.10-1614.58] at cpw.mods.fml.common.eventhandler.EventBus.post(EventBus.java:140) [EventBus.class:1.7.10-1614.58] at cpw.mods.fml.common.FMLCommonHandler.onPreServerTick(FMLCommonHandler.java:265) [FMLCommonHandler.class:1.7.10-1614.58] at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:829) [MinecraftServer.class:?] at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:693) [MinecraftServer.class:?] at java.lang.Thread.run(Thread.java:748) [?:1.8.0_212]

return fill(from, new FluidStack(fluid, 1), false) > 0;

return drain(from, new FluidStack(fluid, 1), false) != null;