修复自动升级相关bug
This commit is contained in:
@@ -1,2 +1,2 @@
|
||||
## 将模块安装记录缓存,因为模块的卸载函数会覆盖该记录
|
||||
data modify storage fzsd:installed fzsd.cache set from storage fzsd:installed fzsd.module
|
||||
data modify storage fzsd:install fzsd.cache set from storage fzsd:install fzsd.module
|
||||
@@ -1,3 +1,3 @@
|
||||
## 恢复模块安装记录
|
||||
data modify storage fzsd:installed fzsd.module set from storage fzsd:installed fzsd.cache
|
||||
data remove storage fzsd:installed fzsd.cache
|
||||
data modify storage fzsd:install fzsd.module set from storage fzsd:install fzsd.cache
|
||||
data remove storage fzsd:install fzsd.cache
|
||||
@@ -1,2 +1,2 @@
|
||||
execute if data storage fzsd:installed fzsd{global: 1b} run function #fzsd:uninstall
|
||||
execute if data storage fzsd:install fzsd{global: 1b} run function #fzsd:uninstall
|
||||
function #fzsd:install
|
||||
|
||||
Reference in New Issue
Block a user