Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exception when specifying null fluid for canDrain and canFill. #647

Open
Xytabich opened this issue Apr 29, 2020 · 0 comments
Open

Exception when specifying null fluid for canDrain and canFill. #647

Xytabich opened this issue Apr 29, 2020 · 0 comments

Comments

@Xytabich
Copy link

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;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant