aboutsummaryrefslogtreecommitdiff
path: root/features/specialMining/index.js
diff options
context:
space:
mode:
authorSoopyboo32 <49228220+Soopyboo32@users.noreply.github.com>2022-09-06 21:40:51 +0800
committerGitHub <noreply@github.com>2022-09-06 21:40:51 +0800
commitdae0a294baba5b92c8d7aecc19d6cc69b2bb7bd9 (patch)
tree400822cf2d435fd0ca086ffecba91df89a974f70 /features/specialMining/index.js
parent6600e4968e4c2e06003dc2bdd4b05dc7eee767f7 (diff)
parent440138a8c05cb5cfbe28c5e77387e049b1db7108 (diff)
downloadSoopyV2-dae0a294baba5b92c8d7aecc19d6cc69b2bb7bd9.tar.gz
SoopyV2-dae0a294baba5b92c8d7aecc19d6cc69b2bb7bd9.tar.bz2
SoopyV2-dae0a294baba5b92c8d7aecc19d6cc69b2bb7bd9.zip
Merge pull request #59 from Soopyboo32/master
pull master
Diffstat (limited to 'features/specialMining/index.js')
-rw-r--r--features/specialMining/index.js8
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() {