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:
parent
578efc7fc9
commit
aa1dcecdb3
16
control.lua
16
control.lua
@ -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
|
||||
OarcRegrowthOffLimits(event.created_entity.position, 1)
|
||||
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
|
||||
OarcRegrowthOffLimits(event.created_entity.position, 1)
|
||||
end)
|
||||
end
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user