diff options
author | Soopyboo32 <49228220+Soopyboo32@users.noreply.github.com> | 2022-06-18 15:00:52 +0800 |
---|---|---|
committer | Soopyboo32 <49228220+Soopyboo32@users.noreply.github.com> | 2022-06-18 15:00:52 +0800 |
commit | 41eff54ca9372c845f69b715ca0fcc737b00eb20 (patch) | |
tree | eafc42f7d30c6e064ce0f2fb9f91e01144ce7b29 /features/events | |
parent | d917c29ab42fbbe44d7dfff27856458477f9202f (diff) | |
download | SoopyV2-41eff54ca9372c845f69b715ca0fcc737b00eb20.tar.gz SoopyV2-41eff54ca9372c845f69b715ca0fcc737b00eb20.tar.bz2 SoopyV2-41eff54ca9372c845f69b715ca0fcc737b00eb20.zip |
+ dont set inquis's as urs if u tp to them (check is based off inquis hp)
Diffstat (limited to 'features/events')
-rw-r--r-- | features/events/index.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/features/events/index.js b/features/events/index.js index 632be08..abc50d6 100644 --- a/features/events/index.js +++ b/features/events/index.js @@ -174,7 +174,7 @@ class Events extends Feature { this.todoE.forEach(e => { e = new Entity(e) - if (e.getName().toLowerCase().includes("inquis") && Math.abs(e.getY() - Player.getY()) < 10 && Math.abs(e.getX() - Player.getX()) < 10 && Math.abs(e.getZ() - Player.getZ()) < 10) { + if (e.getName().toLowerCase().includes("inquis") && ChatLib.removeFormatting(e.getName().toLowerCase()).includes("40m/40m") && Math.abs(e.getY() - Player.getY()) < 10 && Math.abs(e.getX() - Player.getX()) < 10 && Math.abs(e.getZ() - Player.getZ()) < 10) { socketConnection.sendInquisData({ loc: [Math.round(Player.getX()), Math.round(Player.getY()), Math.round(Player.getZ())] }); this.inquisWaypointSpawned = true } |