mirror of
https://github.com/alexcrea/CustomAnvil.git
synced 2026-06-23 16:16:17 +02:00
add/change item of basic config menu.
This commit is contained in:
parent
065a3a13d8
commit
321a2b1cc8
5 changed files with 165 additions and 46 deletions
|
|
@ -32,11 +32,11 @@ class ReloadExecutor : CommandExecutor {
|
|||
*/
|
||||
private fun commandBody(hardfail: Boolean): Boolean{
|
||||
try {
|
||||
if(!ConfigHolder.reloadAllFromDisk(hardfail)) return false;
|
||||
if(!ConfigHolder.reloadAllFromDisk(hardfail)) return false
|
||||
|
||||
// Then update all global gui containing value from config
|
||||
BasicConfigGui.INSTANCE.updateGuiValues();
|
||||
return true;
|
||||
BasicConfigGui.INSTANCE.updateGuiValues()
|
||||
return true
|
||||
}catch (e: Exception){
|
||||
e.printStackTrace()
|
||||
return false
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue