Quick client patch - stop infinite requests if can't accept more

This commit is contained in:
osmarks 2018-08-14 21:56:05 +01:00
parent 5e1931128c
commit f5b4589a78

View File

@ -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