fix NPE for config update event
This commit is contained in:
parent
dacb6f62c4
commit
c9df87e5e0
1 changed files with 1 additions and 1 deletions
|
|
@ -38,7 +38,7 @@ function allMods(e: ConfigurationChangedData): ConfigurationUpdateModData[] {
|
||||||
|
|
||||||
return modNames.map((modName) => {
|
return modNames.map((modName) => {
|
||||||
|
|
||||||
let currentVer = script.active_mods[modName] ?? e.mod_changes[modName].new_version ?? null
|
let currentVer = script.active_mods[modName] ?? e.mod_changes[modName]?.new_version ?? null
|
||||||
let previousVer = e.mod_changes[modName]?.old_version ?? null
|
let previousVer = e.mod_changes[modName]?.old_version ?? null
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue