@@ -16,29 +16,29 @@ public class DefaultConfig {
1616 // Below are the 'default' ores/blocks to add through the ore dictionary.
1717 private final static Map <String , OreInfo > defaults = new HashMap <String , OreInfo >()
1818 {{
19- put ("oreLapis" , new OreInfo ("Lapis" , 0 , 0 , new int []{0 , 0 , 255 }, false ) );
20- put ("oreCopper" , new OreInfo ("Copper" , 0 , 0 , new int []{204 , 102 , 0 }, true ) );
21- put ("oreTin" , new OreInfo ("Tin" , 0 , 0 , new int []{161 , 161 , 161 }, true ) );
22- put ("oreCobalt" , new OreInfo ("Cobalt" , 0 , 0 , new int []{0 , 0 , 255 }, false ) );
23- put ("oreArdite" , new OreInfo ("Ardite" , 0 , 0 , new int []{255 , 153 , 0 }, false ) );
24- put ("oreCertusQuartz" , new OreInfo ("Certus Quartz" , 0 , 0 , new int []{255 , 255 , 255 }, false ) );
25- put ("oreUranium" , new OreInfo ("Uranium" , 0 , 0 , new int []{0 , 255 , 0 }, true ) );
26- put ("oreDiamond" , new OreInfo ("Diamond" , 0 , 0 , new int []{136 , 136 , 255 }, false ) );
27- put ("blockDiamond" , new OreInfo ("Diamond Block" , 0 , 0 , new int []{136 , 136 , 255 }, false ) );
28- put ("oreEmerald" , new OreInfo ("Emerald" , 0 , 0 , new int []{0 , 136 , 10 }, true ) );
29- put ("oreGold" , new OreInfo ("Gold" , 0 , 0 , new int []{255 , 255 , 0 }, false ) );
30- put ("oreRedstone" , new OreInfo ("Redstone" , 0 , 0 , new int []{255 , 0 , 0 }, false ) );
31- put ("oreIron" , new OreInfo ("Iron" , 0 , 0 , new int []{170 , 117 , 37 }, false ) );
32- put ("oreSilver" , new OreInfo ("Silver" , 0 , 0 , new int []{143 ,143 ,143 }, false ) );
33- put ("oreQuartz" , new OreInfo ("Quartz" , 0 , 0 , new int []{30 ,74 ,0 }, false ) );
34- put ("oreCoal" , new OreInfo ("Coal" , 0 , 0 , new int []{0 , 0 , 0 }, false ) );
19+ put ("oreLapis" , new OreInfo ("Lapis" , "Lapis" , 0 , 0 , new int []{0 , 0 , 255 }, false ) );
20+ put ("oreCopper" , new OreInfo ("Copper" , "Copper" , 0 , 0 , new int []{204 , 102 , 0 }, true ) );
21+ put ("oreTin" , new OreInfo ("Tin" , "Tin" , 0 , 0 , new int []{161 , 161 , 161 }, true ) );
22+ put ("oreCobalt" , new OreInfo ("Cobalt" , "Cobalt" , 0 , 0 , new int []{0 , 0 , 255 }, false ) );
23+ put ("oreArdite" , new OreInfo ("Ardite" , "Ardite" , 0 , 0 , new int []{255 , 153 , 0 }, false ) );
24+ put ("oreCertusQuartz" , new OreInfo ("Certus Quartz" , "CertusQuartz" , 0 , 0 , new int []{255 , 255 , 255 }, false ) );
25+ put ("oreUranium" , new OreInfo ("Uranium" , "Uranium" , 0 , 0 , new int []{0 , 255 , 0 }, true ) );
26+ put ("oreDiamond" , new OreInfo ("Diamond" , "Diamond" , 0 , 0 , new int []{136 , 136 , 255 }, false ) );
27+ put ("blockDiamond" , new OreInfo ("Diamond Block" , "DiamondBlock" , 0 , 0 , new int []{136 , 136 , 255 }, false ) );
28+ put ("oreEmerald" , new OreInfo ("Emerald" , "Emerald" , 0 , 0 , new int []{0 , 136 , 10 }, true ) );
29+ put ("oreGold" , new OreInfo ("Gold" , "Gold" , 0 , 0 , new int []{255 , 255 , 0 }, false ) );
30+ put ("oreRedstone" , new OreInfo ("Redstone" , "Redstone" , 0 , 0 , new int []{255 , 0 , 0 }, false ) );
31+ put ("oreIron" , new OreInfo ("Iron" , "Iron" , 0 , 0 , new int []{170 , 117 , 37 }, false ) );
32+ put ("oreSilver" , new OreInfo ("Silver" , "Silver" , 0 , 0 , new int []{143 ,143 ,143 }, false ) );
33+ put ("oreQuartz" , new OreInfo ("Quartz" , "Quartz" , 0 , 0 , new int []{30 ,74 ,0 }, false ) );
34+ put ("oreCoal" , new OreInfo ("Coal" , "Coal" , 0 , 0 , new int []{0 , 0 , 0 }, false ) );
3535 }};
3636
3737 // Default block to add. Mostly just so people can add custom blocks manually through the config until I setup a gui for it.
3838 private final static List <OreInfo > custom = new ArrayList <OreInfo >()
3939 {{
40- add ( new OreInfo ("Redstone Wire" , Block .getIdFromBlock ( Blocks .REDSTONE_WIRE ), 0 , new int []{255 , 0 , 0 }, false ) );
41- add ( new OreInfo ("Chest" , Block .getIdFromBlock ( Blocks .CHEST ), 0 , new int []{255 , 0 , 255 }, true ) );
40+ add ( new OreInfo ("Redstone Wire" , "RedstoneWire" , Block .getIdFromBlock ( Blocks .REDSTONE_WIRE ), 0 , new int []{255 , 0 , 0 }, false ) );
41+ add ( new OreInfo ("Chest" , "Chest" , Block .getIdFromBlock ( Blocks .CHEST ), 0 , new int []{255 , 0 , 255 }, true ) );
4242 }};
4343
4444
@@ -54,10 +54,10 @@ public static void create(Configuration config) // Put default blocks and settin
5454 if ( !OreDictionary .doesOreNameExist ( key ) )
5555 continue ;
5656
57- String category = value .oreName . replaceAll ( " \\ s+" , "" ). toLowerCase () ; // No whitespace or capitals in the config file categories
57+ String category = value .oreName ; // No whitespace or capitals in the config file categories
5858
5959 config .get ("oredict." +category , "dictname" , "SOMETHINGBROKE" ).set ( key ); // We need the capitals for the ore dictionary.
60- config .get ("oredict." +category , "name" , "SOMETHINGBROKE" ).set ( value .oreName );
60+ config .get ("oredict." +category , "name" , "SOMETHINGBROKE" ).set ( value .displayName );
6161 config .get ("oredict." +category , "id" , -1 ).set ( OreDictionary .getOreID ( key ) );
6262 config .get ("oredict." +category , "meta" , -1 ).set ( value .meta );
6363 config .get ("oredict." +category , "red" , -1 ).set ( value .color [0 ] );
@@ -68,8 +68,8 @@ public static void create(Configuration config) // Put default blocks and settin
6868
6969 for ( OreInfo ore : custom ) // Put custom block into the config file.
7070 {
71- String name = ore .oreName . replaceAll ( " \\ s+" , "" ). toLowerCase () ; // No whitespace or capitals in the config file categories.
72- config .get ("customores." +name , "name" , "SOMETHINGBROKE" ).set ( ore .oreName );
71+ String name = ore .oreName ; // No whitespace or capitals in the config file categories.
72+ config .get ("customores." +name , "name" , "SOMETHINGBROKE" ).set ( ore .displayName );
7373 config .get ("customores." +name , "id" , -1 ).set ( ore .id );
7474 config .get ("customores." +name , "meta" , -1 ).set ( ore .meta );
7575 config .get ("customores." +name , "red" , -1 ).set ( ore .color [0 ] );
0 commit comments