Skip to content

Commit 4e8c6e3

Browse files
author
Michael Hillcox
committed
Minute changes
1 parent 5fcce02 commit 4e8c6e3

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

src/main/java/com/fgtxray/OreButtons.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ public class OreButtons
1010
{
1111
public String name; // The name of the ore and the text displayed on this button
1212
public int id; // Id is the first block in the ore dictionary for this type. It's int( str(id) + str(meta) ). So grass is 2+0 or 20.
13-
public ArrayList<OreInfo> ores = new ArrayList(); // List of ores that this button toggles.
14-
13+
public ArrayList<OreInfo> ores = new ArrayList<>(); // List of ores that this button toggles.
14+
1515
public OreButtons(String name, int id, OreInfo ores)
1616
{
1717
this.name = name;

src/main/java/com/fgtxray/config/ConfigHandler.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ public static void setup(FMLPreInitializationEvent event )
1717
{
1818
config = new Configuration( event.getSuggestedConfigurationFile() );
1919
config.load();
20-
FgtXRay.distIndex = config.get(config.CATEGORY_GENERAL, "searchdist", 0).getInt(); // Get our search distance.
20+
FgtXRay.distIndex = config.get(Configuration.CATEGORY_GENERAL, "searchdist", 0).getInt(); // Get our search distance.
2121

2222
for( String category : config.getCategoryNames() ) // Iterate through each category in our config file.
2323
{
@@ -93,7 +93,7 @@ public static void add( String oreName, String ore, int[] color )
9393
public static void update(String string, boolean draw){
9494
if( string.equals("searchdist") ) // Save the new render distance.
9595
{
96-
config.get(config.CATEGORY_GENERAL, "searchdist", 0).set( FgtXRay.distIndex );
96+
config.get(Configuration.CATEGORY_GENERAL, "searchdist", 0).set( FgtXRay.distIndex );
9797
config.save();
9898
return;
9999
}

0 commit comments

Comments
 (0)