Skip to content

Commit

Permalink
fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
slprime committed Aug 15, 2022
1 parent 3f31d7d commit 7d09703
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/main/java/codechicken/nei/config/OptionButton.java
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,8 @@

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;
Expand Down Expand Up @@ -82,17 +80,16 @@ public String getTooltip() {
tip = s;
}
}

if (tip == null && getPrefix() != null) {
final int width = getStringWidth(getPrefix());
final Rectangle b = buttonSize();

if (width >= b.x) {
tip = translateN(name);
}

}

return tip;
}

Expand Down

0 comments on commit 7d09703

Please sign in to comment.