Skip to content

Commit

Permalink
Catch negative circuit signals (not yet sure how they happen tho)
Browse files Browse the repository at this point in the history
  • Loading branch information
Quezler committed Dec 30, 2024
1 parent 8c4a6c5 commit a685967
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions mods_2.0/008_awesome-sink/changelog.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
---------------------------------------------------------------------------------------------------
Version: 1.1.11
Date: 2024. 12. 30
Info:
- Catch negative circuit signals (not yet sure how they happen tho)
---------------------------------------------------------------------------------------------------
Version: 1.1.10
Date: 2024. 12. 30
Info:
Expand Down
2 changes: 1 addition & 1 deletion mods_2.0/008_awesome-sink/control.lua
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,7 @@ end

function Handler.handle_signal(surface_index, force_index, cb, signal_and_count)
local payout = math.floor(signal_and_count.count / 1000)
if payout == 0 then return end
if 0 >= payout then return end

local next_quality = next_quality[signal_and_count.signal.quality or "normal"]
if next_quality == nil then return end
Expand Down
2 changes: 1 addition & 1 deletion mods_2.0/008_awesome-sink/info.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"title": "Awesome sink",
"description": "Feed items inside and get a higher quality item every X items without random chance.",

"version": "1.1.10",
"version": "1.1.11",
"author": "Quezler",
"factorio_version": "2.0",

Expand Down

0 comments on commit a685967

Please sign in to comment.