From 440138a8c05cb5cfbe28c5e77387e049b1db7108 Mon Sep 17 00:00:00 2001 From: Soopyboo32 <49228220+Soopyboo32@users.noreply.github.com> Date: Tue, 6 Sep 2022 21:40:08 +0800 Subject: fix errors from scatha health --- features/specialMining/index.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'features/specialMining/index.js') 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() { -- cgit