mirror of
https://github.com/PHIDIAS0303/ExpCluster.git
synced 2025-12-27 03:25:23 +09:00
.
This commit is contained in:
@@ -61,7 +61,7 @@ local function spawn_turrets()
|
||||
|
||||
-- Makes a new turret if it is not found
|
||||
if not turret or not turret.valid then
|
||||
turret = surface.create_entity{ name = "gun-turret", position = pos, force = "spawn" }
|
||||
turret = surface.create_entity{ name = "gun-turret", position = pos, force = "neutral" }
|
||||
if not turret then return end
|
||||
protect_entity(turret)
|
||||
end
|
||||
|
||||
@@ -189,6 +189,10 @@ function Warps.make_warp_area(warp_id)
|
||||
if entity.type == "electric-pole" then
|
||||
warp.electric_pole = entity
|
||||
end
|
||||
|
||||
if entity.name == "small-lamp" then
|
||||
warp.always_on = true
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user