Skip to content

Commit

Permalink
Fix Item stack count has to be a positive integer.
Browse files Browse the repository at this point in the history
  • Loading branch information
Quezler committed Dec 21, 2023
1 parent 5eceac1 commit fcadc85
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 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.1.0",
"version": "1.1.1",
"author": "Quezler",
"factorio_version": "1.1",
"dependencies": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ function Handler.trash_unrequested(v1_struct)
for name, count in pairs(inventory.get_contents()) do
if not global.missing_items[name] then
local inserted = logistic_network.insert({name = name, count = count}, 'storage') -- we don't want stealth inserts to deliver to requesters
inventory.remove({name = name, count = inserted})
if inserted > 0 then inventory.remove({name = name, count = inserted}) end
end
end

Expand Down

0 comments on commit fcadc85

Please sign in to comment.