Skip to content

Commit 0068f04

Browse files
authored
Update fishing.js
1 parent e6c288c commit 0068f04

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/plugins/fishing.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@ function inject (bot) {
1717

1818
bot._client.on('spawn_entity', (packet) => {
1919
if (packet.type === bobberId && !bot.fishingTask.done && !bot.lastBobber) {
20-
let distance = new Vec3(packet.x, packet.y, packet.z);
20+
const distance = new Vec3(packet.x, packet.y, packet.z);
2121
if (distance.xzDistanceTo(bot.entity.position) < 0.3000000061381125) {
2222
bot.lastBobber = bot.entities[packet.entityId]
23-
}else{return}
23+
}
2424
}
2525
})
2626

0 commit comments

Comments
 (0)