Skip to content

Commit f8bc579

Browse files
Merge pull request #12 from PrismarineJS/master
syncing to base
2 parents 729e4ba + 52c622a commit f8bc579

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

docs/history.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
## 4.27.0
2+
* [Entity Passengers get pushed wrongly (#3601)](https://github.com/PrismarineJS/mineflayer/commit/deb03b52d1e015ece9df1f14536f168f64895c81) (thanks @SinanAkkoyun)
3+
* [Update bot.clickWindow documentation (#3574)](https://github.com/PrismarineJS/mineflayer/commit/188db17bbb95461743aec2823695c360685559b0) (thanks @kaduvert)
4+
* [Saving uuid for non-players too (#3603)](https://github.com/PrismarineJS/mineflayer/commit/9937be9b49bb3dd7cd5502c0424809fa66eb60b3) (thanks @SinanAkkoyun)
5+
16
## 4.26.0
27
* [Use node 22 (#3570)](https://github.com/PrismarineJS/mineflayer/commit/dbff9314418d30df203c32fe83f2a1b56653d0a6) (thanks @rom1504)
38
* [Fix infinity setTimeout by throwing error (#3561)](https://github.com/PrismarineJS/mineflayer/commit/69539494c88c2ca718330142839a35414ecd3bda) (thanks @BBpezsgo)

lib/plugins/entities.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -813,7 +813,9 @@ function inject (bot) {
813813
originalVehicle.passengers.splice(index, 1)
814814
}
815815
passenger.vehicle = vehicle
816-
vehicle.passengers.push(passenger)
816+
if (vehicle) {
817+
vehicle.passengers.push(passenger)
818+
}
817819

818820
if (packet.entityId === bot.entity.id) {
819821
const vehicle = bot.vehicle

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "mineflayer",
3-
"version": "4.26.0",
3+
"version": "4.27.0",
44
"description": "create minecraft bots with a stable, high level API",
55
"main": "index.js",
66
"types": "index.d.ts",

0 commit comments

Comments
 (0)