From 303d4d863b66e5068be119fd463304c44b407ee0 Mon Sep 17 00:00:00 2001 From: sladecraven Date: Tue, 27 Sep 2022 13:33:34 +0200 Subject: [PATCH] Fix #55 --- modules/pegasus-actor.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 !!") }