AE2-UEL / Applied-Energistics-2

AE2UEL, a Fork of a Minecraft Mod about Matter, Energy and using them to conquer the world.
https://legacy.curseforge.com/minecraft/mc-mods/ae2-extended-life
Other
75 stars 71 forks source link

Make `FluidHandlerAdapter` Cache Properly use Tank Properties #483

Open ghzdude opened 3 months ago

ghzdude commented 3 months ago

the cache makes the assumption that the fluid handler has exactly one tank, causing issues if the handler has multiple internal tanks to choose from (as it can always pick the same tank for different properties). i've replaced the drain call with the appropriate method from tank property, which should better handle all cases for a fluid handler.