mirror of
https://github.com/GTNewHorizons/Chisel.git
synced 2026-11-17 03:05:10 +00:00
Add some lifecycle logging to Features
This commit is contained in:
1 parent
e2586546cc
commit
d4bd181ef1
2 files changed
+47
-6
No files matched your search
@@ -104,8 +104,8 @@ public class Configurations {
|
||||
return config.get("features", featureName(feature), true).getBoolean(true) && refreshConfig();
|
||||
}
|
||||
|
||||
// this makes the old camelCase names from the new CONSTANT_CASE names
|
||||
private static String featureName(Features feature) {
|
||||
/** Makes the old camelCase names from the new CONSTANT_CASE names */
|
||||
public static String featureName(Features feature) {
|
||||
String[] words = feature.name().toLowerCase(Locale.ENGLISH).split("_");
|
||||
if (words.length == 1) {
|
||||
return words[0];
|
||||
|
||||
Reference in new issue
Block a user