mirror of
https://github.com/GTNewHorizons/Chisel.git
synced 2026-11-17 11:15:07 +00:00
Add some lifecycle logging to Features
This commit is contained in:
1 parent
e20582e3e9
commit
7aede5f992
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