mirror of
https://github.com/GTNewHorizons/NotEnoughItems.git
synced 2026-11-18 19:39:06 +00:00
fix formatting
This commit is contained in:
1 parent
3f31d7d53a
commit
7d097035b2
1 file changed
+2
-5
@@ -7,10 +7,8 @@ import static codechicken.lib.gui.GuiDraw.getStringWidth;
|
||||
|
||||
import codechicken.nei.LayoutManager;
|
||||
import codechicken.nei.NEIClientUtils;
|
||||
|
||||
import java.awt.Rectangle;
|
||||
import java.util.List;
|
||||
|
||||
import net.minecraft.client.Minecraft;
|
||||
import net.minecraft.util.ResourceLocation;
|
||||
import org.lwjgl.opengl.GL11;
|
||||
@@ -82,7 +80,7 @@ public abstract class OptionButton extends Option {
|
||||
tip = s;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
if (tip == null && getPrefix() != null) {
|
||||
final int width = getStringWidth(getPrefix());
|
||||
final Rectangle b = buttonSize();
|
||||
@@ -90,9 +88,8 @@ public abstract class OptionButton extends Option {
|
||||
if (width >= b.x) {
|
||||
tip = translateN(name);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
return tip;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user