@nxg-org/mineflayer-util-plugin 1.7.3 → 1.7.4

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/lib/calcs/aabb.js CHANGED
@@ -73,8 +73,8 @@ class AABB {
73
73
  * @returns {number[][]} single element long array of shapes.
74
74
  */
75
75
  toShapeFromBottomMiddle() {
76
- const wx = lerp(0.5, this.minX, this.maxX);
77
- const wz = lerp(0.5, this.minX, this.maxX);
76
+ const wx = (this.maxX - this.minX) / 2;
77
+ const wz = (this.maxZ - this.minZ) / 2;
78
78
  return [[-wx, 0, -wz, wx, this.maxY - this.minY, wz]];
79
79
  }
80
80
  toVertices() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nxg-org/mineflayer-util-plugin",
3
- "version": "1.7.3",
3
+ "version": "1.7.4",
4
4
  "description": "mineflayer utils for NextGEN mineflayer plugins.",
5
5
  "keywords": [
6
6
  "mineflayer",