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:
parent
e8174e719f
commit
035ecb2bd7
@ -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
|
||||
|
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user