aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSoopyboo32 <49228220+Soopyboo32@users.noreply.github.com>2021-11-30 23:34:59 +0800
committerSoopyboo32 <49228220+Soopyboo32@users.noreply.github.com>2021-11-30 23:34:59 +0800
commitc6582418087392ffc81ac49db7a5ad8988815863 (patch)
tree66aaa38d1676acf37e91463c9d9dca5b3b35e3fe
parent71ae701c364f586c34ae2d1e5f82e4df89e1d851 (diff)
downloadSoopyV2-c6582418087392ffc81ac49db7a5ad8988815863.tar.gz
SoopyV2-c6582418087392ffc81ac49db7a5ad8988815863.tar.bz2
SoopyV2-c6582418087392ffc81ac49db7a5ad8988815863.zip
fixes
-rw-r--r--disabled.js0
-rw-r--r--featureClass/class.js7
2 files changed, 3 insertions, 4 deletions
diff --git a/disabled.js b/disabled.js
deleted file mode 100644
index e69de29..0000000
--- a/disabled.js
+++ /dev/null
diff --git a/featureClass/class.js b/featureClass/class.js
index c9977d8..c796b28 100644
--- a/featureClass/class.js
+++ b/featureClass/class.js
@@ -1,7 +1,4 @@
/// <reference types="../../CTAutocomplete" />
-
-import logger from "../logger"
-
/// <reference lib="es2015" />
class Feature {
@@ -27,7 +24,9 @@ class Feature {
_onDisable(){
Object.values(this.events).forEach(e=>this.FeatureManager.unregisterEvent(e)) //calling parent unregister to avoid the set in unregister event
Object.values(this.customEvents).forEach(e=>this.FeatureManager.unregisterCustom(e)) //calling parent unregister to avoid the set in unregister event
-
+ Object.values(this.forgeEvents).forEach(e=>this.FeatureManager.unregisterForge(e)) //calling parent unregister to avoid the set in unregister event
+ Object.values(this.soopyEvents).forEach(e=>this.FeatureManager.unregisterSoopy(e)) //calling parent unregister to avoid the set in unregister event
+
this.onDisable()
this.events = {}