Skip to content

Commit

Permalink
Version 0.2.10
Browse files Browse the repository at this point in the history
  • Loading branch information
anoutsider committed Nov 11, 2015
1 parent 13b8540 commit c29cf96
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 6 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ Forum Link : [Advanced Logistics System](http://www.factorioforums.com/forum/vie

Changelog
-----
**0.2.10**

- Fixed a bug with network filters using old network indexes

**0.2.9**

- Update for factorio 0.12.12
Expand Down
6 changes: 3 additions & 3 deletions control.lua
Original file line number Diff line number Diff line change
Expand Up @@ -336,8 +336,8 @@ function on_configuration_changed(data)
local currentVersion = data.mod_changes[modName].new_version
local oldVersion = data.mod_changes[modName].old_version

-- reset network names for version 0.2.9
if newVersion == "0.2.9" and (oldVersion and oldVersion > "0.2.5") then
-- reset network names for version 0.2.10
if newVersion == "0.2.10" and (oldVersion and oldVersion > "0.2.5") then
global.networksNames = {}
end
end
Expand Down Expand Up @@ -706,7 +706,7 @@ function getLogisticsItems(force, index)
local total = 0

for _,chest in pairs(chests) do
local network = tonumber(chest.network)
local network = chest.network
local type = chest.type
local chest = chest.entity
-- check if chest is valid and check for network filters
Expand Down
4 changes: 2 additions & 2 deletions gui/network.lua
Original file line number Diff line number Diff line change
Expand Up @@ -409,7 +409,7 @@ function showNetworksFilter(player, index)

for key,network in pairs(networks) do
local name = network.name
local isFilter = networksFilter[tonumber(key)] and "true" or "false"
local isFilter = networksFilter[key] and "true" or "false"
networksTable.add({type = "checkbox", name = "networksFilter_" .. key, style = "checkbox_style", caption = " ", state = isFilter})
networksTable.add({type = "label", name = "networksName_" .. key, caption = name, style = "lv_info_label"})
end
Expand Down Expand Up @@ -437,7 +437,7 @@ function applyNetworkFilters(player, index)
local key = string.gsub(childName, "networksFilter_", "")

if key ~= "all" then
networksFilter[tonumber(key)] = true
networksFilter[key] = true
end
end
end
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": "advanced-logistics-system",
"version": "0.2.9",
"version": "0.2.10",
"title": "Advanced Logistics System",
"author": "anoutsider",
"description": "Extended Logistics Network View and Monitoring",
Expand Down

0 comments on commit c29cf96

Please sign in to comment.