This commit is contained in:
tamat
2023-02-28 13:28:57 +01:00
parent 376f6434e8
commit 54c2c1c5f7
2 changed files with 34 additions and 0 deletions

View File

@@ -3192,6 +3192,15 @@
return;
}
if(slot == null)
{
console.error("slot must be a number");
return;
}
if(slot.constructor !== Number)
console.warn("slot must be a number, use node.trigger('name') if you want to use a string");
var output = this.outputs[slot];
if (!output) {
return;