Skip to content

Commit aa26ccc

Browse files
change to velocity, fixing broken supportFeature
1 parent 47a41c6 commit aa26ccc

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/plugins/entities.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,9 @@ function inject (bot) {
273273
entity.headPitch = conv.fromNotchianPitchByte(packet.headPitch)
274274

275275
let notchVel
276-
if (bot.supportFeature('entityVelocityIsLpVec3')) {
276+
277+
// this feature is outdated. # bot.supportFeature('entityVelocityIsLpVec3')
278+
if (packet.velocity) {
277279
notchVel = new Vec3(packet.velocity.x, packet.velocity.y, packet.velocity.z)
278280
} else {
279281
notchVel = new Vec3(packet.velocityX, packet.velocityY, packet.velocityZ)

0 commit comments

Comments
 (0)