diff --git a/modules/pegasus-actor.js b/modules/pegasus-actor.js index bb9b115..e4b3f6d 100644 --- a/modules/pegasus-actor.js +++ b/modules/pegasus-actor.js @@ -1997,11 +1997,11 @@ export class PegasusActor extends Actor { if (spaceList && spaceList.length > 0) { space = spaceList.reduce((value, item2) => value + Number(item2.system.space), 0) } - modules.usedvms = space - if (modules.totalvms != this.system.modules.totalvms || modules.usedvms != this.system.modules.usedvms) { + modules.vmsused = space + if (modules.totalvms != this.system.modules.totalvms || modules.usedvms != this.system.modules.vmsused) { 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 !!") }