mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-07-31 15:09:07 +07:00
Allow setting to be reset through the use of config key default
(#6442)
This commit is contained in:

committed by
GitHub

parent
4b6541ae4e
commit
7880135824
@ -576,7 +576,9 @@ public class ServerControl implements ApplicationListener{
|
||||
if(arg.length == 1){
|
||||
info("'@' is currently @.", c.name(), c.get());
|
||||
}else{
|
||||
if(c.isBool()){
|
||||
if (arg[1].equals("default")){
|
||||
c.set(c.defaultValue);
|
||||
}else if(c.isBool()){
|
||||
c.set(arg[1].equals("on") || arg[1].equals("true"));
|
||||
}else if(c.isNum()){
|
||||
try{
|
||||
|
Reference in New Issue
Block a user