diff options
author | Soopyboo32 <49228220+Soopyboo32@users.noreply.github.com> | 2022-09-06 21:40:08 +0800 |
---|---|---|
committer | Soopyboo32 <49228220+Soopyboo32@users.noreply.github.com> | 2022-09-06 21:40:08 +0800 |
commit | 440138a8c05cb5cfbe28c5e77387e049b1db7108 (patch) | |
tree | cdbab89dacbd7e94e13987881dab947342a3474b /features/specialMining/index.js | |
parent | 645b351e5a76e20ac16ce8ea80cd1250e93c7aad (diff) | |
download | SoopyV2-440138a8c05cb5cfbe28c5e77387e049b1db7108.tar.gz SoopyV2-440138a8c05cb5cfbe28c5e77387e049b1db7108.tar.bz2 SoopyV2-440138a8c05cb5cfbe28c5e77387e049b1db7108.zip |
fix errors from scatha health
Diffstat (limited to 'features/specialMining/index.js')
-rw-r--r-- | features/specialMining/index.js | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/features/specialMining/index.js b/features/specialMining/index.js index 0da808d..c7929fb 100644 --- a/features/specialMining/index.js +++ b/features/specialMining/index.js @@ -423,8 +423,12 @@ class PowderAndScatha extends Feature { } else if (this.wormEntity) { this.wormEntity = undefined; } - tempText = this.wormEntity.getName() - this.scathaHealthElement.setText(tempText) + if (this.wormEntity) { + tempText = this.wormEntity.getName() + this.scathaHealthElement.setText(tempText) + } else { + this.scathaHealthElement.setText("") + } } initVariables() { |