aboutsummaryrefslogtreecommitdiff
path: root/logger.js
diff options
context:
space:
mode:
authorSoopyboo32 <49228220+Soopyboo32@users.noreply.github.com>2021-12-09 19:58:26 +0800
committerSoopyboo32 <49228220+Soopyboo32@users.noreply.github.com>2021-12-09 19:58:26 +0800
commit5db44566ab59077701ad6ba40116335294865618 (patch)
treefe6d394e905baa722c0a6cd6c021a68cc2d57755 /logger.js
parentbff09540fe80bdf1e809312a4709261168adc381 (diff)
downloadSoopyV2-5db44566ab59077701ad6ba40116335294865618.tar.gz
SoopyV2-5db44566ab59077701ad6ba40116335294865618.tar.bz2
SoopyV2-5db44566ab59077701ad6ba40116335294865618.zip
Reset globals correctly after gameunload
Diffstat (limited to 'logger.js')
-rw-r--r--logger.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/logger.js b/logger.js
index cd6d4e2..9c27a93 100644
--- a/logger.js
+++ b/logger.js
@@ -39,5 +39,8 @@ if(!global.soopyv2loggerthing){
devs.push(Player.getUUID().toString().replace(/-/g, ""))
}).setName("pleasegivemeaccesstosoopyv2devconsolelogs") //yep
+ register("gameUnload", ()=>{
+ global.soopyv2loggerthing = undefined
+ })
}
export default global.soopyv2loggerthing \ No newline at end of file