Fixed Line 55 In Paths

This commit is contained in:
Cooldude2606
2018-03-12 22:43:57 +00:00
parent 112f263f5a
commit aeaa10eb3e

View File

@@ -50,7 +50,7 @@ local function remove_key(surface,pos)
end
local function clean_global()
if not global.paths then return end
if not global.paths or not game then return end
for key,tile in pairs(global.paths) do
if tile[3] < game.tick-clean_time then global.paths[key] = nil end
end