forked from Mirrors/openclonk
Bugfix: Called wrong function
parent
3481f5e830
commit
5200dcf724
|
@ -621,7 +621,7 @@ public func CheckLiquids(id product, bool remove)
|
|||
if (this->~IsLiquidContainer()) PushBack(liq_containers, this);
|
||||
for (var liq_container in liq_containers)
|
||||
{
|
||||
var val = liq_container->~GetLiquid(liquid, need - extracted);
|
||||
var val = liq_container->RemoveLiquid(liquid, need - extracted);
|
||||
extracted += val[1];
|
||||
if (extracted >= need)
|
||||
return true;
|
||||
|
|
|
@ -77,7 +77,7 @@ public func Move()
|
|||
return Message("$MsgStuck$");
|
||||
|
||||
fuel_amount--;
|
||||
barrel->GetLiquid("Water", 1, this);
|
||||
barrel->RemoveLiquid("Water", 1, this);
|
||||
if (move_dir == -1)
|
||||
SetDir(DIR_Left);
|
||||
if (move_dir == 1)
|
||||
|
|
Loading…
Reference in New Issue