mineflayer 4.16.0 → 4.17.0
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 +1 -1
- package/docs/README.md +1 -1
- package/docs/history.md +5 -0
- package/index.js +1 -1
- package/lib/plugins/entities.js +1 -2
- package/package.json +1 -1
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, 1.19 and 1.20
|
|
20
|
+
* Supports Minecraft 1.8 to 1.20.1 (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, 1.19 and 1.20
|
|
20
|
+
* Supports Minecraft 1.8 to 1.20.1 (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,8 @@
|
|
|
1
|
+
## 4.17.0
|
|
2
|
+
* [Exclude browser from node version check (#3268)](https://github.com/PrismarineJS/mineflayer/commit/c466d327227796865c53bfd24e66668911be4af5) (thanks @rom1504)
|
|
3
|
+
* [Fix for a possible error in lib/plugins/entities.js file (#3254)](https://github.com/PrismarineJS/mineflayer/commit/15cfeb4fa59edfcddf7a0b70a966294b24d798ed) (thanks @Mykola1453)
|
|
4
|
+
* [Make explicit supported versions in readme (#3264)](https://github.com/PrismarineJS/mineflayer/commit/931a4187965aef686c6188b944de84455c65b827) (thanks @rom1504)
|
|
5
|
+
|
|
1
6
|
## 4.16.0
|
|
2
7
|
* [Fix version check (#3259)](https://github.com/PrismarineJS/mineflayer/commit/88d361f9209cdc2bc4620b32118fb2245f6dcdf9) (thanks @extremeheat)
|
|
3
8
|
|
package/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
if (typeof process !== 'undefined' && parseInt(process.versions.node.split('.')[0]) < 18) {
|
|
1
|
+
if (typeof process !== 'undefined' && !process.browser && process.platform !== 'browser' && parseInt(process.versions.node.split('.')[0]) < 18) {
|
|
2
2
|
console.error('Your node version is currently', process.versions.node)
|
|
3
3
|
console.error('Please update it to a version >= 18.x.x from https://nodejs.org/')
|
|
4
4
|
process.exit(1)
|
package/lib/plugins/entities.js
CHANGED
|
@@ -176,6 +176,7 @@ function inject (bot) {
|
|
|
176
176
|
entityData = entitiesArray.find(entity => entity.internalId === type)
|
|
177
177
|
}
|
|
178
178
|
if (entityData) {
|
|
179
|
+
entity.type = entityData.type || 'object'
|
|
179
180
|
entity.displayName = entityData.displayName
|
|
180
181
|
entity.entityType = entityData.id
|
|
181
182
|
entity.name = entityData.name
|
|
@@ -196,8 +197,6 @@ function inject (bot) {
|
|
|
196
197
|
bot._client.on('spawn_entity', (packet) => {
|
|
197
198
|
const entity = fetchEntity(packet.entityId)
|
|
198
199
|
const entityData = bot.registry.entities[packet.type]
|
|
199
|
-
|
|
200
|
-
entity.type = entityData.type || 'object'
|
|
201
200
|
setEntityData(entity, packet.type, entityData)
|
|
202
201
|
|
|
203
202
|
if (bot.supportFeature('fixedPointPosition')) {
|