Skip to content

Commit

Permalink
Print colliding items to the chat in order to determine how important…
Browse files Browse the repository at this point in the history
… it is to handle them
  • Loading branch information
Quezler committed Dec 13, 2023
1 parent 88b2f9c commit ec0297a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
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.15",
"version": "1.0.16",
"author": "Quezler",
"factorio_version": "1.1",
"dependencies": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -264,6 +264,9 @@ function Handler.on_entity_destroyed(event)

if handled_alert.entity.name == "entity-ghost" then
local colliding_items, revived_entity = handled_alert.entity.revive{raise_revive = true}
if table_size(colliding_items) > 0 then
game.print(serpent.line(colliding_items))
end
if revived_entity then
cargo.remove(handled_alert.itemstack)
Handler.shoot(struct)
Expand Down

0 comments on commit ec0297a

Please sign in to comment.