@@ -37,20 +37,7 @@ public ConfigManagerDeepSpace(File file)
37
37
}
38
38
39
39
// DIMENSIONS
40
- public static int dimensionIDAsteroids ;
41
-
42
- // GUI
43
-
44
- // SCHEMATIC
45
- public static int idSchematicRocketT3 ;
46
-
47
- // GENERAL
48
- public static boolean disableGalacticraftHelium ;
49
- public static int astroMinerMax ;
50
-
51
- public static boolean disableIlmeniteGen ;
52
- public static boolean disableIronGen ;
53
- public static boolean disableAluminumGen ;
40
+ public static int dimensionIDDeepSpace ;
54
41
55
42
public static void syncConfig (boolean load , boolean update )
56
43
{
@@ -67,89 +54,21 @@ public static void syncConfig(boolean load, boolean update)
67
54
}
68
55
}
69
56
70
- prop = config .get (Constants .CONFIG_CATEGORY_DIMENSIONS , "dimensionIDAsteroids " , -30 );
71
- prop .setComment ("Dimension ID for Asteroids " );
72
- prop .setLanguageKey ("gc.configgui.dimension_id_asteroids " ).setRequiresMcRestart (true );
57
+ prop = config .get (Constants .CONFIG_CATEGORY_DIMENSIONS , "dimensionIDDeepSpace " , -32 );
58
+ prop .setComment ("Dimension ID for Deep Space Station " );
59
+ prop .setLanguageKey ("gc.configgui.dimension_id_deep_space " ).setRequiresMcRestart (true );
73
60
if (update )
74
61
{
75
62
propCopy = ConfigManagerMars .config .get (Constants .CONFIG_CATEGORY_DIMENSIONS , prop .getName (), prop .getInt (), prop .getComment ());
76
63
propCopy .setLanguageKey (prop .getLanguageKey ());
77
64
propCopy .setRequiresMcRestart (prop .requiresMcRestart ());
78
65
}
79
- dimensionIDAsteroids = prop .getInt ();
66
+ dimensionIDDeepSpace = prop .getInt ();
80
67
GalacticraftPlanets .finishProp (prop , Constants .CONFIG_CATEGORY_DIMENSIONS );
81
-
82
- //
83
-
84
- prop = config .get (Constants .CONFIG_CATEGORY_SCHEMATIC , "idSchematicRocketT3" , 4 );
85
- prop .setComment ("Schematic ID for Tier 3 Rocket, must be unique." );
86
- prop .setLanguageKey ("gc.configgui.id_schematic_rocket_t3" );
87
- if (update )
88
- {
89
- propCopy = ConfigManagerMars .config .get (Constants .CONFIG_CATEGORY_SCHEMATIC , prop .getName (), prop .getInt (), prop .getComment ());
90
- propCopy .setLanguageKey (prop .getLanguageKey ());
91
- }
92
- idSchematicRocketT3 = prop .getInt (4 );
93
- GalacticraftPlanets .finishProp (prop , Constants .CONFIG_CATEGORY_SCHEMATIC );
94
-
95
- prop = config .get (Constants .CONFIG_CATEGORY_GENERAL , "disableGalacticraftHelium" , false );
96
- prop .setComment ("Option to disable Helium gas in Galacticraft (because it will be registered by another mod eg GregTech)." );
97
- prop .setLanguageKey ("gc.configgui.disable_galacticraft_helium" );
98
- if (update )
99
- {
100
- propCopy = ConfigManagerMars .config .get (Constants .CONFIG_CATEGORY_GENERAL , prop .getName (), prop .getBoolean (), prop .getComment ());
101
- propCopy .setLanguageKey (prop .getLanguageKey ());
102
- }
103
- disableGalacticraftHelium = prop .getBoolean (false );
104
- GalacticraftPlanets .finishProp (prop , Constants .CONFIG_CATEGORY_GENERAL );
105
-
106
- prop = config .get (Constants .CONFIG_CATEGORY_GENERAL , "maximumAstroMiners" , 6 );
107
- prop .setComment ("Maximum number of Astro Miners each player is allowed to have active (default 6)." );
108
- prop .setLanguageKey ("gc.configgui.astro_miners_max" );
109
- if (update )
110
- {
111
- propCopy = ConfigManagerMars .config .get (Constants .CONFIG_CATEGORY_GENERAL , prop .getName (), prop .getInt (), prop .getComment ());
112
- propCopy .setLanguageKey (prop .getLanguageKey ());
113
- }
114
- astroMinerMax = prop .getInt (6 );
115
- GalacticraftPlanets .finishProp (prop , Constants .CONFIG_CATEGORY_GENERAL );
116
-
117
- prop = config .get (update ? Constants .CONFIG_CATEGORY_GENERAL : Constants .CONFIG_CATEGORY_WORLDGEN , "Disable Iron Ore Gen on Asteroids" , false );
118
- prop .setComment ("Disable Iron Ore Gen on Asteroids." );
119
- prop .setLanguageKey ("gc.configgui.disable_iron_gen_asteroids" );
120
- if (update )
121
- {
122
- propCopy = ConfigManagerMars .config .get (Constants .CONFIG_CATEGORY_WORLDGEN , prop .getName (), prop .getBoolean (), prop .getComment ());
123
- propCopy .setLanguageKey (prop .getLanguageKey ());
124
- }
125
- disableIronGen = prop .getBoolean (false );
126
- GalacticraftPlanets .finishProp (prop , Constants .CONFIG_CATEGORY_WORLDGEN );
127
-
128
- prop = config .get (update ? Constants .CONFIG_CATEGORY_GENERAL : Constants .CONFIG_CATEGORY_WORLDGEN , "Disable Aluminum Ore Gen on Asteroids" , false );
129
- prop .setComment ("Disable Aluminum Ore Gen on Asteroids." );
130
- prop .setLanguageKey ("gc.configgui.disable_aluminum_gen_asteroids" );
131
- if (update )
132
- {
133
- propCopy = ConfigManagerMars .config .get (Constants .CONFIG_CATEGORY_WORLDGEN , prop .getName (), prop .getBoolean (), prop .getComment ());
134
- propCopy .setLanguageKey (prop .getLanguageKey ());
135
- }
136
- disableAluminumGen = prop .getBoolean (false );
137
- GalacticraftPlanets .finishProp (prop , Constants .CONFIG_CATEGORY_WORLDGEN );
138
-
139
- prop = config .get (update ? Constants .CONFIG_CATEGORY_GENERAL : Constants .CONFIG_CATEGORY_WORLDGEN , "Disable Ilmenite Ore Gen on Asteroids" , false );
140
- prop .setComment ("Disable Ilmenite Ore Gen on Asteroids." );
141
- prop .setLanguageKey ("gc.configgui.disable_ilmenite_gen_asteroids" );
142
- if (update )
143
- {
144
- propCopy = ConfigManagerMars .config .get (Constants .CONFIG_CATEGORY_WORLDGEN , prop .getName (), prop .getBoolean (), prop .getComment ());
145
- propCopy .setLanguageKey (prop .getLanguageKey ());
146
- }
147
- disableIlmeniteGen = prop .getBoolean (false );
148
- GalacticraftPlanets .finishProp (prop , Constants .CONFIG_CATEGORY_WORLDGEN );
149
68
}
150
69
catch (final Exception e )
151
70
{
152
- FMLLog .log (Level .ERROR , e , "Galacticraft Asteroids (Planets) has a problem loading its config" );
71
+ FMLLog .log (Level .ERROR , e , "Galacticraft Deep Space (Planets) has a problem loading its config" );
153
72
}
154
73
}
155
74
}
0 commit comments