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
|
- Added surface minime_dummy_dungeon and minime-preview-character to exclusion list
|
||||||
- Increased unit spawner cooldown by 2x
|
- Increased unit spawner cooldown by 2x
|
||||||
- Added point loss on unit death
|
- Added point loss on unit death
|
||||||
|
Bugfixes:
|
||||||
|
- Fixed Krastorio2 on_force_created playerforces being nil
|
||||||
|
|
||||||
---------------------------------------------------------------------------------------------------
|
---------------------------------------------------------------------------------------------------
|
||||||
Version: 2.2.0
|
Version: 2.2.0
|
||||||
|
@ -848,8 +848,10 @@ local function onGroupFinishedGathering(event)
|
|||||||
end
|
end
|
||||||
|
|
||||||
local function onForceCreated(event)
|
local function onForceCreated(event)
|
||||||
|
if universe.playerForces then
|
||||||
universe.playerForces[#universe.playerForces+1] = event.force.name
|
universe.playerForces[#universe.playerForces+1] = event.force.name
|
||||||
end
|
end
|
||||||
|
end
|
||||||
|
|
||||||
local function onForceMerged(event)
|
local function onForceMerged(event)
|
||||||
for i=#universe.playerForces,1,-1 do
|
for i=#universe.playerForces,1,-1 do
|
||||||
|
Loading…
x
Reference in New Issue
Block a user