mirror of
https://github.com/PHIDIAS0303/ExpCluster.git
synced 2026-11-12 23:54:53 +09:00
Fixed Paths
This commit is contained in:
1 parent
39b1ef2d75
commit
bcb4d47963
1 file changed
+1
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user