Fix #55
This commit is contained in:
parent
2b0320be5f
commit
303d4d863b
@ -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 !!")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user