Skip to content

Commit

Permalink
0.2.1 for Factorio 0.17.23+
Browse files Browse the repository at this point in the history
  • Loading branch information
dewiniaid committed Apr 1, 2019
1 parent 3afd07c commit 7b57475
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 13 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,10 @@ already been reported, and report it if not.

## Changelog

### 0.2.1 (2019-03-31)
* Update research requirements for changes made in Factorio 0.17.23
* Fix crash when adding Batteries Not Included to an existing save that had QuickItemSwap enabled.

### 0.2.0 (2019-02-26)
* Updated for Factorio 0.17

Expand Down
13 changes: 13 additions & 0 deletions changelog.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,16 @@
---------------------------------------------------------------------------------------------------
Version: 0.2.1
Date: 31. 03. 2019
Bugfixes:
- Update research requirements for changes made in Factorio 0.17.23
- Fix crash when adding Batteries Not Included to an existing save that had QuickItemSwap enabled.

---------------------------------------------------------------------------------------------------
Version: 0.2.0
Date: 26. 02. 2019
Changes:
- Update for Factorio 0.17

---------------------------------------------------------------------------------------------------
Version: 0.1.4
Date: 08. 10. 2018
Expand Down
22 changes: 11 additions & 11 deletions control.lua
Original file line number Diff line number Diff line change
Expand Up @@ -30,18 +30,18 @@ local function qis_apply_patch()
}, "BatteriesNotIncluded")
end

local function on_init()
qis_register_events()
qis_apply_patch()
end

local function on_load()
qis_register_events()
end
--local function on_init()
-- qis_register_events()
-- qis_apply_patch()
--end
--
--local function on_load()
-- qis_register_events()
--end

script.on_init(on_init)
script.on_configuration_changed(on_init)
script.on_load(on_load)
script.on_init(qis_register_events)
script.on_load(qis_register_events)
--script.on_configuration_changed(qis_apply_patch)

-- Register events.
local function has_recoverable_battery(entity)
Expand Down
4 changes: 2 additions & 2 deletions info.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"name": "BatteriesNotIncluded",
"version": "0.2.0",
"version": "0.2.1",
"title": "Batteries Not Included",
"author": "Dewin",
"contact": "https://github.com/dewiniaid/BatteriesNotIncluded",
"homepage": "https://github.com/dewiniaid/BatteriesNotIncluded",
"factorio_version": "0.17",
"dependencies": ["base >= 0.17", "? QuickItemSwap"],
"dependencies": ["base >= 0.17.23", "? QuickItemSwap"],
"description": "Run electric trains using battery packs that can be removed and recharged."
}

0 comments on commit 7b57475

Please sign in to comment.