mirror of
https://github.com/Oarcinae/FactorioScenarioMultiplayerSpawn.git
synced 2025-01-30 03:38:00 +02:00
Cleaning regrowth logic, anything player built is now off limits.
This commit is contained in:
parent
578efc7fc9
commit
aa1dcecdb3
16
control.lua
16
control.lua
@ -298,23 +298,11 @@ if ENABLE_REGROWTH then
|
|||||||
end)
|
end)
|
||||||
|
|
||||||
script.on_event(defines.events.on_built_entity, function (event)
|
script.on_event(defines.events.on_built_entity, function (event)
|
||||||
if (event.created_entity.name == "straight-rail") then
|
OarcRegrowthOffLimits(event.created_entity.position, 1)
|
||||||
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)
|
||||||
|
|
||||||
script.on_event(defines.events.on_robot_built_entity, function (event)
|
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)
|
||||||
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)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user