Quick client patch - stop infinite requests if can't accept more
This commit is contained in:
parent
5e1931128c
commit
f5b4589a78
@ -66,6 +66,9 @@ local commands = {
|
|||||||
quantity = max_quantity,
|
quantity = max_quantity,
|
||||||
destination_inventory = conf.network_name
|
destination_inventory = conf.network_name
|
||||||
}), "extracting a stack").moved
|
}), "extracting a stack").moved
|
||||||
|
if moved == 0 then -- inventory full
|
||||||
|
quantity = 0
|
||||||
|
end
|
||||||
quantity = quantity - moved
|
quantity = quantity - moved
|
||||||
item_type.count = item_type.count - moved
|
item_type.count = item_type.count - moved
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user