mirror of
https://github.com/GTNewHorizons/Binnie.git
synced 2026-11-17 19:15:24 +00:00
Fix ComponentTankContainer draining wrong fluid when specific fluid requested (#97)
This commit is contained in:
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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user