@nxg-org/mineflayer-util-plugin 1.7.7 → 1.7.8

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.
@@ -32,9 +32,9 @@ class RayTraceFunctions {
32
32
  const iterator = new iterators_1.RaycastIterator(startPos, dir, maxDistance);
33
33
  for (const id in aabbMap) {
34
34
  const aabb = aabbMap[id];
35
- const pt = aabb.bottomMiddlePoint();
35
+ const pt = aabb.minPoint();
36
36
  const entity = this.bot.entities[id];
37
- const intersect = iterator.intersect(aabb.toShapeFromBottomMiddle(), pt);
37
+ const intersect = iterator.intersect(aabb.toShapeFromMin(), pt);
38
38
  if (intersect) {
39
39
  const entityDir = pt.minus(eyePos);
40
40
  const sign = Math.sign(entityDir.dot(dir));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nxg-org/mineflayer-util-plugin",
3
- "version": "1.7.7",
3
+ "version": "1.7.8",
4
4
  "description": "mineflayer utils for NextGEN mineflayer plugins.",
5
5
  "keywords": [
6
6
  "mineflayer",