aboutsummaryrefslogtreecommitdiff
path: root/src/featureClass/class.js
diff options
context:
space:
mode:
authorSoopyboo32 <49228220+Soopyboo32@users.noreply.github.com>2022-10-04 21:23:48 +0800
committerSoopyboo32 <49228220+Soopyboo32@users.noreply.github.com>2022-10-04 21:23:48 +0800
commit2d463dc118b0d73605906ae0c2e4419bf39e8571 (patch)
treeda97464dadad112db7975c35fa931b4bd5ee9be6 /src/featureClass/class.js
parent3a8cc7cc26ac3b48734b167d7ea2a6fef66cd513 (diff)
downloadSoopyV2-2d463dc118b0d73605906ae0c2e4419bf39e8571.tar.gz
SoopyV2-2d463dc118b0d73605906ae0c2e4419bf39e8571.tar.bz2
SoopyV2-2d463dc118b0d73605906ae0c2e4419bf39e8571.zip
+ fix game freeze on first dungeon of the day
+ (potential) fix memory leak when doing lots of /ct reload + add seperate setting for powder info on hud to rest of powder features
Diffstat (limited to 'src/featureClass/class.js')
-rw-r--r--src/featureClass/class.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/featureClass/class.js b/src/featureClass/class.js
index 987b460..fc4f7ff 100644
--- a/src/featureClass/class.js
+++ b/src/featureClass/class.js
@@ -176,6 +176,8 @@ class Event {
this.registerArgs = registerArgs
this.parent = parent
+ this.data.eventT = this
+
this.enabled = true
this.when = undefined
@@ -280,14 +282,17 @@ class ForgeEvent extends Event {
}
class CustomEvent extends Event {
+ //theEvent, theEvent.trigger, [isFps, interval, func], this
constructor(...args) {
super(...args)
}
actuallyRegister() {
+ if (this.data.type === "step") return
this.trigger.register()
}
actuallyUnregister() {
+ if (this.data.type === "step") return
this.trigger.unregister()
}
}