Skip to content

Commit

Permalink
close #3
Browse files Browse the repository at this point in the history
  • Loading branch information
zyxkad committed Feb 27, 2024
1 parent f40b478 commit 2ec2a89
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions tpm/globals.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 2ec2a89

Please sign in to comment.