1
0
mirror of https://github.com/Refactorio/RedMew.git synced 2025-09-16 09:16:22 +02:00

Fixed local shadow

This commit is contained in:
Lynn
2018-11-29 19:18:06 +01:00
parent fefb26c91a
commit 0fe4f7efa9

View File

@@ -435,14 +435,13 @@ to reinforce it further.
end
for _, entity in pairs(surface.find_entities_filtered({position = {x = x, y = y}})) do
pcall(function()
local strength = support_beam_entities[entity.name]
local position = entity.position
entity.die()
if strength then
stress_map_add(surface, position, strength)
end
local local_strength = support_beam_entities[entity.name]
local local_position = entity.position
entity.die()
if strength then
stress_map_add(surface, local_position, local_strength)
end
)
end)
end
end
end