MinecraftModDevelopmentMods / BC-Ore-Processing

Build Craft Addon for Ore Processing
MIT License
4 stars 2 forks source link

Fix fluid processor getting stuck on magic extra 1mb fluid stack #18

Closed perkinslr closed 2 years ago

perkinslr commented 2 years ago

If used with pipes from a mod faster than BC's native fluid pipes (encountered with ThermalDynamics pipes), the FluidProcessor can get stuck when the input fluid type changes. It ends up with 1mb left of the first input fluid, and a normal amount of fluid in the input tank.

This is a quick and dirty fix, which is capable of fixing already jammed FluidProcessors in existing worlds. A more complete solution would not call this.currentFluid = fluidAtTick.copyWithSize(1) but I think this is good enough.

Also, since BC disabled RF input, if there is interest, I have a patch that enables it (both for base BC, and for this mod). I can provide a PR if desired.