Skip to content

Commit a685967

Browse files
committed
Catch negative circuit signals (not yet sure how they happen tho)
1 parent 8c4a6c5 commit a685967

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

mods_2.0/008_awesome-sink/changelog.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
11
---------------------------------------------------------------------------------------------------
2+
Version: 1.1.11
3+
Date: 2024. 12. 30
4+
Info:
5+
- Catch negative circuit signals (not yet sure how they happen tho)
6+
---------------------------------------------------------------------------------------------------
27
Version: 1.1.10
38
Date: 2024. 12. 30
49
Info:

mods_2.0/008_awesome-sink/control.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,7 @@ end
318318

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

323323
local next_quality = next_quality[signal_and_count.signal.quality or "normal"]
324324
if next_quality == nil then return end

mods_2.0/008_awesome-sink/info.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"title": "Awesome sink",
44
"description": "Feed items inside and get a higher quality item every X items without random chance.",
55

6-
"version": "1.1.10",
6+
"version": "1.1.11",
77
"author": "Quezler",
88
"factorio_version": "2.0",
99

0 commit comments

Comments
 (0)