bdew-minecraft / generators

Advanced Generators Mod
MIT License
26 stars 22 forks source link

When I mistakenly tried to drain a Fluid Intake Valve with a Fluid pipe, the server crashed #202

Closed lolosiax closed 2 years ago

lolosiax commented 2 years ago

When I mistakenly tried to drain a Fluid Intake Valve with a Fluid pipe, the server crashed.

This is the Issues when I reported to the author of the Pipez Mod... https://github.com/henkelmax/pipez/issues/103

He was said : Fluids should never be null. No fluid means Fluids.EMPTY the block is advgenerators:fluid_input

java.lang.NullPointerException: Cannot invoke "net.minecraftforge.fluids.FluidStack.getFluid()" because "fluidInTank" is null at de.maxhenkel.pipez.blocks.tileentity.types.FluidPipeType.insertEqually(FluidPipeType.java:101) ... many more

bdew commented 2 years ago

That's odd... I'll try to reproduce it and figure out where that null comes from. It should be using EMPTY everywhere.

bdew commented 2 years ago

Should be fixed in bdlib