Skip to content

Commit

Permalink
0.4.2 - One line fix: unpaired validity check
Browse files Browse the repository at this point in the history
  • Loading branch information
dustine committed Oct 3, 2017
1 parent f6172ce commit 348903e
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
6 changes: 5 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,12 @@ and this project adheres to [Semantic Versioning](http://semver.org/). Mostly.

## [Unreleased]

## [0.4.2] - 2017-10-03
### Fixed
- Ensure valid unpaired index before iterating (could cause desync)

## [0.4.1] - 2017-10-03
## Added
### Added
- (Proper) Picker dolly support

## [0.4.0] - 2017-09-29
Expand Down
2 changes: 1 addition & 1 deletion control.lua
Original file line number Diff line number Diff line change
Expand Up @@ -298,9 +298,9 @@ end)
-- * code check
-- * add more .valid checks
script.on_event(defines.events.on_tick, function(event)

-- charger re-pairing
local next_charger
if not unpaired[counters.uid] then counters.uid = nil end
counters.uid, next_charger = next(unpaired, counters.uid)
-- print("on_tick:unpair:"..(counters.uid or "nil")..":"..((next_charger and next_charger.valid and next_charger.unit_number) or "nil"))
if next_charger then
Expand Down
2 changes: 1 addition & 1 deletion info.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ChargeTransmission",
"version": "0.4.1",
"version": "0.4.2",
"title": "Charge Transmission",
"author": "Dustine",
"dependencies": ["base >= 0.15.34"],
Expand Down

0 comments on commit 348903e

Please sign in to comment.