aboutsummaryrefslogtreecommitdiff
path: root/features/specialMining/index.js
diff options
context:
space:
mode:
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() {