From db1e9c54cd49741173724c4816665af17a63cd27 Mon Sep 17 00:00:00 2001 From: Octav Sandulescu Date: Fri, 21 Aug 2015 04:56:16 +0000 Subject: [PATCH] Fix #10: console spam from player list --- evoGUI.lua | 2 +- info.json | 2 +- value_sensors/player_locations.lua | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/evoGUI.lua b/evoGUI.lua index d139ebf..6e89395 100644 --- a/evoGUI.lua +++ b/evoGUI.lua @@ -10,7 +10,7 @@ if not evogui then evogui = {} end if not evogui.on_click then evogui.on_click = {} end evogui.update_delay = 60 -- ticks to wait between each GUI update -local EXPECTED_VERSION = "0.3.1" +local EXPECTED_VERSION = "0.3.2" function evogui.update_gui() diff --git a/info.json b/info.json index ae7f931..2a4a15c 100644 --- a/info.json +++ b/info.json @@ -1,6 +1,6 @@ { "name": "EvoGUI", - "version": "0.3.1", + "version": "0.3.2", "title": "Evolution Factor Indicator", "author": "Octav \"narc\" Sandulescu", "contact": "factorio-mods@narc.ro", diff --git a/value_sensors/player_locations.lua b/value_sensors/player_locations.lua index e8545a7..4b81ca8 100644 --- a/value_sensors/player_locations.lua +++ b/value_sensors/player_locations.lua @@ -17,7 +17,7 @@ function sensor:create_ui(owner) end function sensor:update_ui(owner) - if self.player_list == nil then return end + if self.player_list == nil or not self.player_list.valid then return end for _, p in ipairs(game.players) do if self.player_list[p.name] == nil then