We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e6c288c commit 0068f04Copy full SHA for 0068f04
lib/plugins/fishing.js
@@ -17,10 +17,10 @@ function inject (bot) {
17
18
bot._client.on('spawn_entity', (packet) => {
19
if (packet.type === bobberId && !bot.fishingTask.done && !bot.lastBobber) {
20
- let distance = new Vec3(packet.x, packet.y, packet.z);
+ const distance = new Vec3(packet.x, packet.y, packet.z);
21
if (distance.xzDistanceTo(bot.entity.position) < 0.3000000061381125) {
22
bot.lastBobber = bot.entities[packet.entityId]
23
- }else{return}
+ }
24
}
25
})
26
0 commit comments