Add bool Config::isDefault() (#9510)
* Add `bool Config::isDefault()` * use Structs.eq instead of ==
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user