From 2ec2a8956097e84fccae71786e3629a83534a358 Mon Sep 17 00:00:00 2001 From: zyxkad Date: Mon, 26 Feb 2024 21:59:13 -0700 Subject: [PATCH] close #3 --- tpm/globals.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/tpm/globals.py b/tpm/globals.py index 2d89b3b..97bfc14 100644 --- a/tpm/globals.py +++ b/tpm/globals.py @@ -42,9 +42,8 @@ def init(server: MCDR.PluginServerInterface): metadata = server.get_self_metadata() LazyData.load(BIG_BLOCK_BEFOR, metadata) LazyData.load(BIG_BLOCK_AFTER, metadata) - TPMConfig.init_instance(server, load_after_init=True) + cfg = TPMConfig.init_instance(server, load_after_init=True) + cfg.save() def destory(server: MCDR.PluginServerInterface): - cfg = get_config() - if cfg is not None: - cfg.save() + pass