diff options
author | Soopyboo32 <49228220+Soopyboo32@users.noreply.github.com> | 2022-01-28 03:41:20 +0800 |
---|---|---|
committer | Soopyboo32 <49228220+Soopyboo32@users.noreply.github.com> | 2022-01-28 03:41:20 +0800 |
commit | 2b71eace5e20e0340578871eda491f314a34e285 (patch) | |
tree | 0303479129261f999d260f5840b63ab6ee6dbe42 /featureClass/class.js | |
parent | 6f7eb9b2b0e5d9a2068f8c2fc184f0cdd941fe83 (diff) | |
download | SoopyV2-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.js | 2 |
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) } |