2
2
3
3
import java .io .File ;
4
4
import net .minecraftforge .common .config .Configuration ;
5
+ import ru .timeconqueror .tcneiadditions .TCNEIAdditions ;
5
6
6
7
public class TCNAConfig {
7
8
public static Configuration config ;
8
9
9
- public static final String GENERAL = "General" ;
10
+ public static final String GENERAL = "general" ;
11
+
12
+ public static final String [] CATEGORIES = new String [] {GENERAL };
13
+
14
+ private static final String LANG_PREFIX = TCNEIAdditions .MODID + ".config." ;
10
15
11
16
public static boolean showLockedRecipes ;
12
17
public static boolean showInstabilityNumber ;
@@ -19,14 +24,20 @@ public static void init(File file) {
19
24
20
25
public static void syncConfig () {
21
26
config .setCategoryComment (GENERAL , "General config" );
27
+ config .setCategoryLanguageKey (GENERAL , LANG_PREFIX + GENERAL );
22
28
23
29
showLockedRecipes = config .get (
24
30
GENERAL , "showLockedRecipes" , false , "Show recipes even if the research is not completed" )
31
+ .setLanguageKey (LANG_PREFIX + GENERAL + ".showLockedRecipes" )
25
32
.getBoolean ();
33
+
26
34
showInstabilityNumber = config .get (
27
35
GENERAL , "showInstabilityNumber" , true , "Show the number of instability of infusion" )
36
+ .setLanguageKey (LANG_PREFIX + GENERAL + ".showInstabilityNumber" )
28
37
.getBoolean ();
38
+
29
39
showResearchKey = config .get (GENERAL , "showResearchKey" , true , "Show research key" )
40
+ .setLanguageKey (LANG_PREFIX + GENERAL + ".showResearchKey" )
30
41
.getBoolean ();
31
42
32
43
if (config .hasChanged ()) {
0 commit comments