mirror of
https://github.com/PHIDIAS0303/ExpCluster.git
synced 2025-12-31 04:51:40 +09:00
fixed artly attacking spawn
This commit is contained in:
@@ -154,7 +154,7 @@ end
|
|||||||
|
|
||||||
local function spawn_turrets()
|
local function spawn_turrets()
|
||||||
local surface = game.surfaces[1]
|
local surface = game.surfaces[1]
|
||||||
if not game.forces['spawn'] then game.create_force('spawn').set_cease_fire('player',true) end
|
if not game.forces['spawn'] then game.create_force('spawn').set_cease_fire('player',true) game.forces['player'].set_cease_fire('spawn',true) end
|
||||||
for _,pos in pairs(turrets) do
|
for _,pos in pairs(turrets) do
|
||||||
local turret = surface.find_entity('gun-turret',pos)
|
local turret = surface.find_entity('gun-turret',pos)
|
||||||
if not turret then
|
if not turret then
|
||||||
|
|||||||
Reference in New Issue
Block a user