diff options
author | jakeQT <96396730+jakeQT@users.noreply.github.com> | 2022-06-19 16:24:42 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-19 16:24:42 +0800 |
commit | 336bb1dc925e102e22be53ea16296aa2caa7a1e6 (patch) | |
tree | 5ae1fec08c46a66b2c33fe52df47b211b829fe83 /features | |
parent | 6e53cecbb56b8672a3c81443921c942b4bb68a77 (diff) | |
download | SoopyV2-336bb1dc925e102e22be53ea16296aa2caa7a1e6.tar.gz SoopyV2-336bb1dc925e102e22be53ea16296aa2caa7a1e6.tar.bz2 SoopyV2-336bb1dc925e102e22be53ea16296aa2caa7a1e6.zip |
a
make it to use delay utils
Diffstat (limited to 'features')
-rw-r--r-- | features/slayers/index.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/features/slayers/index.js b/features/slayers/index.js index cdf6636..b412461 100644 --- a/features/slayers/index.js +++ b/features/slayers/index.js @@ -10,6 +10,7 @@ import ToggleSetting from "../settings/settingThings/toggle"; import socketConnection from "../../socketConnection"; import TextSetting from "../settings/settingThings/textSetting"; import { firstLetterCapital } from "../../utils/stringUtils"; +import { delay } from "../../utils/delayUtils"; class Slayers extends Feature { constructor() { @@ -341,7 +342,7 @@ class Slayers extends Feature { if (this.emanBoss && this.emanBoss.getEntity()[f.isDead]) { if (this.hideSummonsForLoot.getValue()) { - setTimeout(() => { this.hideSummons = false }, 2000); + delay(2000, () => { this.hideSummons = false }) } this.emanBoss = undefined this.actualEmanBoss = undefined @@ -431,7 +432,7 @@ class Slayers extends Feature { } return true; }); - + // just makes it to work on all eman slayers if (this.allEmanBosses.getValue()) { World.getAllEntitiesOfType(net.minecraft.entity.item.EntityArmorStand).forEach(enderman => { |