From 9995cf0b72ced3be624871e9cf762a6c78991f22 Mon Sep 17 00:00:00 2001 From: Cooldude2606 Date: Sat, 26 May 2018 11:38:09 +0100 Subject: [PATCH] Change to paths to help cut errors on lod --- StandAlone/paths.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/StandAlone/paths.lua b/StandAlone/paths.lua index ebc0149f..a73439fb 100644 --- a/StandAlone/paths.lua +++ b/StandAlone/paths.lua @@ -69,6 +69,7 @@ end) Event.register(defines.events.on_player_changed_position, function(event) local player = Game.get_player(event) + if player and player.valid and game.tick > 10 then else return end if player.afk_time > 300 then return end local surface = player.surface local pos = player.position