From a9029e0801770ca318a47eabbfb49588c757bd5c Mon Sep 17 00:00:00 2001 From: Cooldude2606 Date: Fri, 28 Sep 2018 22:30:47 +0100 Subject: [PATCH] Fixed Paths Error --- StandAlone/paths.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/StandAlone/paths.lua b/StandAlone/paths.lua index 5bf74cf7..b72b287e 100644 --- a/StandAlone/paths.lua +++ b/StandAlone/paths.lua @@ -122,7 +122,7 @@ Event.register({defines.events.on_built_entity,on_robot_built_entity}, function( if sizes[entity.name] then local size = sizes[entity.name]-1 for x = -size,0 do for y = -size,0 do - local pos = {entity.position.x+x,entity.position.y+y} + local pos = {x=entity.position.x+x,y=entity.position.y+y} local tile = surface.get_tile(pos).name if paths[tile] and math.random() < paths[tile][1]*size*(-10) then down_grade(surface,pos)