aboutsummaryrefslogtreecommitdiff
path: root/featureClass/class.js
diff options
context:
space:
mode:
authorSoopyboo32 <49228220+Soopyboo32@users.noreply.github.com>2022-01-28 03:41:20 +0800
committerSoopyboo32 <49228220+Soopyboo32@users.noreply.github.com>2022-01-28 03:41:20 +0800
commit2b71eace5e20e0340578871eda491f314a34e285 (patch)
tree0303479129261f999d260f5840b63ab6ee6dbe42 /featureClass/class.js
parent6f7eb9b2b0e5d9a2068f8c2fc184f0cdd941fe83 (diff)
downloadSoopyV2-2b71eace5e20e0340578871eda491f314a34e285.tar.gz
SoopyV2-2b71eace5e20e0340578871eda491f314a34e285.tar.bz2
SoopyV2-2b71eace5e20e0340578871eda491f314a34e285.zip
fix error handling for forge events causing error
Diffstat (limited to 'featureClass/class.js')
-rw-r--r--featureClass/class.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/featureClass/class.js b/featureClass/class.js
index 13ddf81..581f6ba 100644
--- a/featureClass/class.js
+++ b/featureClass/class.js
@@ -79,7 +79,7 @@ class Feature {
this.forgeEvents[theEvent.id] = theEvent
}catch(e){
- if(!messageIfError) messageIfError = "An error occured while registering the event " + event.toString() + ", this may cause " + this.constructor.name + " to not work properly."
+ if(!messageIfError) messageIfError = "An error occured while registering the event " + event.class.toString().split(".").pop() + ", this may cause " + this.constructor.name + " to not work properly."
ChatLib.chat(this.FeatureManager.messagePrefix + messageIfError)
}