mineflayer 4.10.0 → 4.10.1

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/README.md CHANGED
@@ -17,7 +17,7 @@ First time using Node.js? You may want to start with the [tutorial](tutorial.md)
17
17
 
18
18
  ## Features
19
19
 
20
- * Supports Minecraft 1.8, 1.9, 1.10, 1.11, 1.12, 1.13, 1.14, 1.15, 1.16, 1.17, 1.18 and 1.19.
20
+ * Supports Minecraft 1.8, 1.9, 1.10, 1.11, 1.12, 1.13, 1.14, 1.15, 1.16, 1.17, 1.18, 1.19 and 1.20.
21
21
  * Entity knowledge and tracking.
22
22
  * Block knowledge. You can query the world around you. Milliseconds to find any block.
23
23
  * Physics and movement - handle all bounding boxes
package/docs/README.md CHANGED
@@ -17,7 +17,7 @@ First time using Node.js? You may want to start with the [tutorial](tutorial.md)
17
17
 
18
18
  ## Features
19
19
 
20
- * Supports Minecraft 1.8, 1.9, 1.10, 1.11, 1.12, 1.13, 1.14, 1.15, 1.16, 1.17, 1.18 and 1.19.
20
+ * Supports Minecraft 1.8, 1.9, 1.10, 1.11, 1.12, 1.13, 1.14, 1.15, 1.16, 1.17, 1.18, 1.19 and 1.20.
21
21
  * Entity knowledge and tracking.
22
22
  * Block knowledge. You can query the world around you. Milliseconds to find any block.
23
23
  * Physics and movement - handle all bounding boxes
package/docs/history.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## 4.10.1
2
+
3
+ * Fix attempting to access unloaded chunks (@frej4189)
4
+
1
5
  ## 4.10.0
2
6
 
3
7
  * Fix handling for entities with unknown metadata (@extremeheat)
@@ -413,11 +413,13 @@ function inject (bot, { version, storageBuilder, hideErrors }) {
413
413
  bot._client.on('tile_entity_data', (packet) => {
414
414
  if (packet.location !== undefined) {
415
415
  const column = bot.world.getColumn(packet.location.x >> 4, packet.location.z >> 4)
416
+ if (!column) return
416
417
  const pos = new Vec3(packet.location.x & 0xf, packet.location.y, packet.location.z & 0xf)
417
418
  column.setBlockEntity(pos, packet.nbtData)
418
419
  } else {
419
420
  const tag = packet.nbtData
420
421
  const column = bot.world.getColumn(tag.value.x.value >> 4, tag.value.z.value >> 4)
422
+ if (!column) return
421
423
  const pos = new Vec3(tag.value.x.value & 0xf, tag.value.y.value, tag.value.z.value & 0xf)
422
424
  column.setBlockEntity(pos, tag)
423
425
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mineflayer",
3
- "version": "4.10.0",
3
+ "version": "4.10.1",
4
4
  "description": "create minecraft bots with a stable, high level API",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",