@nxg-org/mineflayer-physics-util 1.8.16 → 1.8.17

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.
@@ -157,7 +157,9 @@ class EPhysicsCtx {
157
157
  return new EPhysicsCtx(ctx, settings, poses_1.PlayerPoses.STANDING, states_1.EntityState.CREATE_FROM_ENTITY(ctx, newE), entityType);
158
158
  }
159
159
  static FROM_ENTITY_STATE(ctx, entityState, entityType, settings) {
160
+ var _a;
160
161
  settings !== null && settings !== void 0 ? settings : (settings = new physicsSettings_1.PhysicsWorldSettings(ctx.data));
162
+ (_a = entityState.pose) !== null && _a !== void 0 ? _a : (entityState.pose = poses_1.PlayerPoses.STANDING);
161
163
  return new EPhysicsCtx(ctx, settings, entityState.pose, entityState, entityType);
162
164
  }
163
165
  clone() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nxg-org/mineflayer-physics-util",
3
- "version": "1.8.16",
3
+ "version": "1.8.17",
4
4
  "description": "Provides functionality for more accurate entity and projectile tracking.",
5
5
  "keywords": [
6
6
  "mineflayer",
@@ -37,6 +37,7 @@
37
37
  "mineflayer-pathfinder": "^2.4.4",
38
38
  "mocha": "^11.1.0",
39
39
  "prismarine-entity": "^2.4.0",
40
+ "prismarine-physics": "^1.10.0",
40
41
  "prismarine-registry": "^1.11.0",
41
42
  "ts-node": "^10.9.2",
42
43
  "typescript": "^5.8.2",