From bcb4d47963544931932463faae503e1b0d714770 Mon Sep 17 00:00:00 2001 From: Cooldude2606 Date: Wed, 19 Sep 2018 20:25:51 +0100 Subject: [PATCH] Fixed Paths --- StandAlone/paths.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/StandAlone/paths.lua b/StandAlone/paths.lua index 954d5254..5b77cf5a 100644 --- a/StandAlone/paths.lua +++ b/StandAlone/paths.lua @@ -124,7 +124,7 @@ Event.register({defines.events.on_built_entity,on_robot_built_entity}, function( for x = 0,size do for y = 0,size do local pos = {entity.position.x+x,entity.position.y+y} local tile = surface.get_tile(pos).name - if math.random() < paths[tile]*size*10 then + if math.random() < paths[tile][1]*size*(-10) then down_grade(surface,pos) end end end