Add bool Config::isDefault() (#9510)

* Add `bool Config::isDefault()`

* use Structs.eq instead of ==
This commit is contained in:
BalaM314 2024-02-02 21:22:28 +05:30 committed by GitHub
parent d376183d14
commit dc4f3ba972
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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();
}