Fix ComponentTankContainer draining wrong fluid when specific fluid requested (#97)

This commit is contained in:
Matej Dipčár authored and GitHub committed 2026-05-25 19:06:36 +02:00
1 parent 2b1843b74d
commit 4eb26e9d77
1 file changed
+1 -1
@@ -164,7 +164,7 @@ public class ComponentTankContainer extends MachineComponent implements ITankMac
@Override
public FluidStack drain(ForgeDirection from, FluidStack resource, boolean doDrain) {
int index = getTankIndexToDrain(from, null);
int index = getTankIndexToDrain(from, resource);
if (!tanks.containsKey(index)) {
return null;
}