@nxg-org/mineflayer-util-plugin 1.7.10 → 1.7.11

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.
@@ -70,7 +70,7 @@ export declare class AABB {
70
70
  moveCoords(d: number, d2: number, d3: number): AABB;
71
71
  move(vec3: FakeVec3): AABB;
72
72
  intersectsCoords(d: number, d2: number, d3: number, d4: number, d5: number, d6: number): boolean;
73
- collidesAABB(aABB: AABB): boolean;
73
+ collides(aABB: AABB): boolean;
74
74
  collidesCoords(d: number, d2: number, d3: number, d4: number, d5: number, d6: number): boolean;
75
75
  containsVec(vec: FakeVec3): boolean;
76
76
  contains(x: number, y: number, z: number): boolean;
package/lib/calcs/aabb.js CHANGED
@@ -304,7 +304,7 @@ class AABB {
304
304
  intersectsCoords(d, d2, d3, d4, d5, d6) {
305
305
  return this.minX < d4 && this.maxX > d && this.minY < d5 && this.maxY > d2 && this.minZ < d6 && this.maxZ > d3;
306
306
  }
307
- collidesAABB(aABB) {
307
+ collides(aABB) {
308
308
  return this.collidesCoords(aABB.minX, aABB.minY, aABB.minZ, aABB.maxX, aABB.maxY, aABB.maxZ);
309
309
  }
310
310
  collidesCoords(d, d2, d3, d4, d5, d6) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nxg-org/mineflayer-util-plugin",
3
- "version": "1.7.10",
3
+ "version": "1.7.11",
4
4
  "description": "mineflayer utils for NextGEN mineflayer plugins.",
5
5
  "keywords": [
6
6
  "mineflayer",