Add replace to expensive config can be changed with the gui.

This commit is contained in:
alexcrea 2024-05-20 22:02:36 +02:00
parent f684e15c5b
commit 7db88b6b04
No known key found for this signature in database
GPG key ID: 43FD265DB0DBF91F
7 changed files with 73 additions and 34 deletions

View file

@ -16,7 +16,7 @@ class EditConfigExecutor : CommandExecutor {
return false
}
if (sender !is HumanEntity) return false
MainConfigGui.INSTANCE.show(sender)
MainConfigGui.getInstance().show(sender)
return true
}

View file

@ -36,7 +36,7 @@ class ReloadExecutor : CommandExecutor {
if (!ConfigHolder.reloadAllFromDisk(hardfail)) return false
// Then update all global gui containing value from config
BasicConfigGui.INSTANCE.updateGuiValues()
BasicConfigGui.getInstance()?.updateGuiValues()
EnchantCostConfigGui.INSTANCE.updateGuiValues()
EnchantLimitConfigGui.INSTANCE.updateGuiValues()