mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-01-31 01:44:22 +07:00
Add bool Config::isDefault()
(#9510)
* Add `bool Config::isDefault()` * use Structs.eq instead of ==
This commit is contained in:
parent
d376183d14
commit
dc4f3ba972
@ -577,6 +577,10 @@ public class Administration{
|
||||
changed.run();
|
||||
}
|
||||
|
||||
public boolean isDefault(){
|
||||
return Structs.eq(get(), defaultValue);
|
||||
}
|
||||
|
||||
private static boolean debug(){
|
||||
return Config.debug.bool();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user