Skip to content

Commit

Permalink
Fix `handler.lua:298: could not remove enough of this item from the p…
Browse files Browse the repository at this point in the history
…roxy.`
  • Loading branch information
Quezler committed Dec 12, 2023
1 parent 1f6e558 commit 52d681d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "se-interstellar-construction-requests-fulfillment",
"title": "Space Exploration - interstellar construction requests fulfillment",
"description": "Keeping building equipment stocked at every planet is tedious, just shoot it there from nauvis.",
"version": "1.0.12",
"version": "1.0.13",
"author": "Quezler",
"factorio_version": "1.1",
"dependencies": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -293,8 +293,10 @@ function Handler.item_request_proxy_subtract(item_request_proxy, itemstack)
if name == itemstack.name then
count = count - itemstack.count
if 0 >= count then
error('could not remove enough of this item from the proxy.')
-- item_requests[name] = nil
if 0 > count then
error('could not remove enough of this item from the proxy.')
end
item_requests[name] = nil
else
item_requests[name] = count
end
Expand Down

0 comments on commit 52d681d

Please sign in to comment.