This commit is contained in:
sladecraven 2022-09-27 13:33:34 +02:00
parent 2b0320be5f
commit 303d4d863b

View File

@ -1997,11 +1997,11 @@ export class PegasusActor extends Actor {
if (spaceList && spaceList.length > 0) { if (spaceList && spaceList.length > 0) {
space = spaceList.reduce((value, item2) => value + Number(item2.system.space), 0) space = spaceList.reduce((value, item2) => value + Number(item2.system.space), 0)
} }
modules.usedvms = space modules.vmsused = space
if (modules.totalvms != this.system.modules.totalvms || modules.usedvms != this.system.modules.usedvms) { if (modules.totalvms != this.system.modules.totalvms || modules.usedvms != this.system.modules.vmsused) {
this.update({ 'system.modules': modules }) this.update({ 'system.modules': modules })
} }
if (modules.usedvms > modules.totalvms) { if (modules.vmsused > modules.totalvms) {
ui.notifications.warn("Warning! No more space available in cargo !!") ui.notifications.warn("Warning! No more space available in cargo !!")
} }