1
0
mirror of https://github.com/veden/Rampant.git synced 2025-03-17 20:58:35 +02:00

FACTO-56: added nil check for playerForces during migration

This commit is contained in:
Aaron Veden 2022-02-21 17:06:08 -08:00
parent e8174e719f
commit 035ecb2bd7
No known key found for this signature in database
GPG Key ID: FF5990B1C6DD3F84
2 changed files with 5 additions and 1 deletions

View File

@ -6,6 +6,8 @@ Version: 2.3.0
- Added surface minime_dummy_dungeon and minime-preview-character to exclusion list
- Increased unit spawner cooldown by 2x
- Added point loss on unit death
Bugfixes:
- Fixed Krastorio2 on_force_created playerforces being nil
---------------------------------------------------------------------------------------------------
Version: 2.2.0

View File

@ -848,7 +848,9 @@ local function onGroupFinishedGathering(event)
end
local function onForceCreated(event)
universe.playerForces[#universe.playerForces+1] = event.force.name
if universe.playerForces then
universe.playerForces[#universe.playerForces+1] = event.force.name
end
end
local function onForceMerged(event)