Skip to content

Commit

Permalink
Infinite loop debug build
Browse files Browse the repository at this point in the history
  • Loading branch information
Quezler committed Dec 11, 2023
1 parent b448ff1 commit dcb2432
Show file tree
Hide file tree
Showing 2 changed files with 3 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.9",
"version": "1.0.10",
"author": "Quezler",
"factorio_version": "1.1",
"dependencies": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ function Handler.draw_random_card()
local already_shuffled = false

while true do
log('infinite loop 1?')
if #global.deck == 0 then
if already_shuffled or #global.pile == 0 then return nil end

Expand Down Expand Up @@ -147,6 +148,7 @@ function Handler.handle_construction_alert(alert_target)
if item_to_place_this.count == 1 then -- no support for e.g. curved rails (which need 4) yet

while true do
log('infinite loop 2?')
local struct = Handler.draw_random_card()
if not struct then break end

Expand Down

0 comments on commit dcb2432

Please sign in to comment.