Skip to content

Commit ff3b94f

Browse files
author
Michael Hillcox
committed
Fixed Distance button
1 parent cff6cfd commit ff3b94f

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/main/java/com/xray/client/gui/GuiList.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ public void initGui()
5555

5656
GuiButton aNextButton, aPrevButton;
5757
this.buttonList.add( new GuiButton(1, (width / 2) - 67, height / 2 + 86, 55, 20, "Add Ore" ) );
58-
this.buttonList.add( new GuiButton(2, (width / 2) - 10, height / 2 + 86, 82, 20, "Distance: "+ XRay.distStrings[ XRay.currentDist]) ); // Static button for printing the ore dictionary / searchList.
58+
this.buttonList.add( new GuiButton(0, (width / 2) - 10, height / 2 + 86, 82, 20, "Distance: "+ XRay.distStrings[ XRay.currentDist]) ); // Static button for printing the ore dictionary / searchList.
5959
this.buttonList.add( aNextButton = new GuiButton(2, width / 2 + 75, height / 2 + 86, 30, 20, ">") );
6060
this.buttonList.add( aPrevButton = new GuiButton(3, width / 2 - 100, height / 2 + 86, 30, 20, "<") );
6161

@@ -83,6 +83,7 @@ public void actionPerformed( GuiButton button )
8383
XRay.currentDist++;
8484
else
8585
XRay.currentDist = 0;
86+
ClientTick.blockFinder( true );
8687
ConfigHandler.update("searchdist", false);
8788
break;
8889

src/main/java/com/xray/common/config/ConfigHandler.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ public static void setup(FMLPreInitializationEvent event )
3333
boolean enabled = cat.get("enabled").getBoolean(false);
3434

3535
XRay.oredictOres.put(dictName, new OreInfo( guiName, guiName.replaceAll("\\s+", ""), id, meta, color, enabled ) );
36-
3736
}
3837
else if( category.startsWith("customores.") )
3938
{

0 commit comments

Comments
 (0)