@woosh/meep-engine 2.46.11 → 2.46.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "productName": "Meep",
5
5
  "description": "production-ready JavaScript game engine based on Entity Component System Architecture",
6
6
  "author": "Alexander Goldring",
7
- "version": "2.46.11",
7
+ "version": "2.46.12",
8
8
  "main": "build/meep.module.js",
9
9
  "module": "build/meep.module.js",
10
10
  "scripts": {
@@ -112,6 +112,7 @@ export class NodeRegistry {
112
112
 
113
113
  /**
114
114
  * Given a class inheriting from NodeDescription, get all registered instances
115
+ * Matching is strict, instances of subclasses are not matched
115
116
  * @param {Type<NodeDescription>} Klass
116
117
  * @returns {NodeDescription[]}
117
118
  */
@@ -119,7 +120,7 @@ export class NodeRegistry {
119
120
  const result = [];
120
121
 
121
122
  for (const [id, node] of this.nodes) {
122
- if (Object.getPrototypeOf(node) === Klass) {
123
+ if (node.constructor === Klass) {
123
124
  result.push(node);
124
125
  }
125
126
  }