mirror of
https://github.com/alexcrea/CustomAnvil.git
synced 2026-06-23 16:16:17 +02:00
add save to disk & backup to int & boolean setting gui.
This commit is contained in:
parent
643487e1a9
commit
c5dbbeb67c
8 changed files with 47 additions and 43 deletions
|
|
@ -30,11 +30,11 @@ class ReloadExecutor : CommandExecutor {
|
|||
* Execute the command, return true if success or false otherwise
|
||||
*/
|
||||
private fun commandBody(hardfail: Boolean): Boolean{
|
||||
try {
|
||||
return ConfigHolder.reloadAllFromDisk(hardfail);
|
||||
return try {
|
||||
ConfigHolder.reloadAllFromDisk(hardfail)
|
||||
}catch (e: Exception){
|
||||
e.printStackTrace()
|
||||
return false
|
||||
false
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue