Skip to content

Commit

Permalink
Log when white loop becomes infinite
Browse files Browse the repository at this point in the history
  • Loading branch information
Quezler committed Dec 10, 2023
1 parent c14f725 commit d9aa953
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.0.4",
"version": "1.0.5",
"author": "Quezler",
"factorio_version": "1.1",
"dependencies": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ function Handler.handle_construction_alert(alert_target)
local struct = Handler.draw_random_card()
if not struct then return end

if anti_infinite_loop > anti_infinite_loop_max then return end
if anti_infinite_loop > anti_infinite_loop_max then log('anti_infinite_loop_max ('..anti_infinite_loop_max..') touched :o') return end
anti_infinite_loop = anti_infinite_loop + 1

if alert_target.force == struct.entity.force then
Expand Down

0 comments on commit d9aa953

Please sign in to comment.