Closed OhiraKyou closed 8 years ago
oh yes, I see what's happening here:
if(getTank().getFluidAmount() > 0 && getTank().getFluid().getFluid().equals(fluid.getFluid())){
return getTank().drain(fluid.amount,forReal);
} else {
return new FluidStack(getTank().getFluid().getFluid(),0);
}
That "else" won't work that well for an empty tank.
Oops. I'll fix that soon. Thanks for the catch, HenryLoenwind. I wish fluid tanks were a little more deterministic in their behavior ("empty" tanks often, but not always, have a fluid stack) and didn't require so many null checks.
Yes, those tank classes are not the best piece of software. In Ender IO we are subclassing them to make life a bit easier.
Now fixed in version 2.2.2 (I think).
Sucking water from a Power Advantage drain into an EnderIO fluid tank causes a crash then and on subsequent world loading attempts.
I am also posting this report to the EnderIO issues.
Data
Crash log Screenshots with steps Example world that crashes on load (489 KB)
Versions
Minecraft
EnderIO
Power Advantage