From 2b71eace5e20e0340578871eda491f314a34e285 Mon Sep 17 00:00:00 2001 From: Soopyboo32 <49228220+Soopyboo32@users.noreply.github.com> Date: Fri, 28 Jan 2022 03:41:20 +0800 Subject: fix error handling for forge events causing error --- featureClass/class.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'featureClass/class.js') 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) } -- cgit