1
0
mirror of https://github.com/Oarcinae/FactorioScenarioMultiplayerSpawn.git synced 2025-01-18 02:58:37 +02:00

Cleaning regrowth logic, anything player built is now off limits.

This commit is contained in:
Oarcinae 2017-08-05 09:56:09 -04:00
parent 578efc7fc9
commit aa1dcecdb3

View File

@ -298,23 +298,11 @@ if ENABLE_REGROWTH then
end)
script.on_event(defines.events.on_built_entity, function (event)
if (event.created_entity.name == "straight-rail") then
OarcRegrowthOffLimits(event.created_entity.position, 1)
elseif (event.created_entity.name == "curved-rail") then
OarcRegrowthOffLimits(event.created_entity.position, 1)
else
OarcRegrowthOffLimits(event.created_entity.position, 1)
end
end)
script.on_event(defines.events.on_robot_built_entity, function (event)
if (event.created_entity.name == "straight-rail") then
OarcRegrowthOffLimits(event.created_entity.position, 1)
elseif (event.created_entity.name == "curved-rail") then
OarcRegrowthOffLimits(event.created_entity.position, 1)
else
OarcRegrowthOffLimits(event.created_entity.position, 1)
end
end)
end