diff --git a/changelog.txt b/changelog.txt index c3f3169..89afac4 100644 --- a/changelog.txt +++ b/changelog.txt @@ -64,6 +64,7 @@ Version: 3.2.0 - Fixed /rampantSetAIState command could error if not provide correct parameters or didn't display a message if parameters were missing - Fixed the pheromone processing could skip the inner most chunks or the outer most chunks of a map - Fixed rallying units didn't use the base associated with the chunk for determining cost + - Fixed that vanilla unit groups didn't respect initial peace time Optimizations: - Moved most constants out of global - Removed new enemy variations setting diff --git a/control.lua b/control.lua index d6a9c5e..ea8bd97 100644 --- a/control.lua +++ b/control.lua @@ -724,6 +724,10 @@ local function onUnitGroupCreated(event) if group.is_script_driven then return end + if not Universe.awake then + group.destroy() + return + end local map = Universe.maps[surface.index] if not map then return @@ -800,6 +804,9 @@ local function onGroupFinishedGathering(event) if not group.valid or (group.force.name ~= "enemy") then return end + if not Universe.awake then + group.destroy() + end local map = Universe.maps[group.surface.index] if not map then return