@woosh/meep-engine 2.34.46 → 2.34.47

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.
@@ -257,10 +257,12 @@ export class BinaryNode extends Node {
257
257
  break;
258
258
  }
259
259
 
260
- if (cost_left < cost_right) {
260
+ if (cost_left < cost_right && left !== null) {
261
261
  node = left;
262
- } else {
262
+ } else if (right !== null) {
263
263
  node = right;
264
+ } else {
265
+ break;
264
266
  }
265
267
  }
266
268
 
@@ -150,6 +150,7 @@ export class Foliage2System extends System {
150
150
  const mesh = group.mesh;
151
151
 
152
152
  destination[additions + destination_offset] = mesh;
153
+ additions++;
153
154
  }
154
155
 
155
156
  }
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "productName": "Meep",
6
6
  "description": "production-ready JavaScript game engine based on Entity Component System Architecture",
7
7
  "author": "Alexander Goldring",
8
- "version": "2.34.46",
8
+ "version": "2.34.47",
9
9
  "dependencies": {
10
10
  "gl-matrix": "3.4.3",
11
11
  "fast-levenshtein": "2.0.6",