Fixed Some Bugs

This commit is contained in:
Cooldude2606
2018-09-10 17:50:24 +01:00
parent ce8cf366d0
commit ddbef36e5f
4 changed files with 6 additions and 6 deletions

View File

@@ -120,8 +120,8 @@ Event.register(defines.events.on_built_entity, function(event)
local surface = player.surface
if entities[entity.name] then
local size = entities[entity.name]
for (x in 0,size) do for (y in 0,size) do
local pos = [entity.position.x+x,entity.position.y+y]
for x in 0,size do for y in 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
down_grade(surface,pos)