@nxg-org/mineflayer-util-plugin 1.2.0 → 1.2.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.
@@ -92,9 +92,9 @@ class EntityFunctions {
92
92
  return new aabb_1.AABB(-w, 0, -w, w, entity.height, w).offset(x, y, z);
93
93
  }
94
94
  //Stolen from mineflayer.
95
- parseMetadata(metadata, entityMetadata = {}) {
96
- if (metadata !== undefined) {
97
- for (const { key, value } of metadata) {
95
+ parseMetadata(packetMetadata, entityMetadata = {}) {
96
+ if (packetMetadata !== undefined) {
97
+ for (const { key, value } of packetMetadata) {
98
98
  entityMetadata[key] = value;
99
99
  }
100
100
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nxg-org/mineflayer-util-plugin",
3
- "version": "1.2.0",
3
+ "version": "1.2.4",
4
4
  "description": "mineflayer utils for NextGEN mineflayer plugins.",
5
5
  "keywords": [
6
6
  "mineflayer",
@@ -19,7 +19,6 @@
19
19
  "prepublish": "npm run build"
20
20
  },
21
21
  "dependencies": {
22
- "@nxg-org/mineflayer-util-plugin": "^1.0.1",
23
22
  "minecraft-data": "^2.97.0",
24
23
  "mineflayer": "^3.11.2",
25
24
  "mineflayer-pathfinder": "^1.8.0",