Skip to content

Commit 21aee83

Browse files
Fix typo
1 parent fffafe7 commit 21aee83

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/main/java/net/wurstclient/clickgui/components/BlockComponent.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ public final class BlockComponent extends Component
2626
{
2727
private static final ClickGui GUI = WURST.getGui();
2828
private static final TextRenderer TR = MC.textRenderer;
29-
private static final int BLOCK_WITDH = 24;
29+
private static final int BLOCK_WIDTH = 24;
3030

3131
private final BlockSetting setting;
3232

@@ -41,7 +41,7 @@ public BlockComponent(BlockSetting setting)
4141
public void handleMouseClick(double mouseX, double mouseY, int mouseButton,
4242
Click context)
4343
{
44-
if(mouseX < getX() + getWidth() - BLOCK_WITDH)
44+
if(mouseX < getX() + getWidth() - BLOCK_WIDTH)
4545
return;
4646

4747
switch(mouseButton)
@@ -62,7 +62,7 @@ public void render(DrawContext context, int mouseX, int mouseY,
6262
{
6363
int x1 = getX();
6464
int x2 = x1 + getWidth();
65-
int x3 = x2 - BLOCK_WITDH;
65+
int x3 = x2 - BLOCK_WIDTH;
6666
int y1 = getY();
6767
int y2 = y1 + getHeight();
6868

@@ -128,12 +128,12 @@ private String getBlockTooltip()
128128
@Override
129129
public int getDefaultWidth()
130130
{
131-
return TR.getWidth(setting.getName() + ":") + BLOCK_WITDH + 4;
131+
return TR.getWidth(setting.getName() + ":") + BLOCK_WIDTH + 4;
132132
}
133133

134134
@Override
135135
public int getDefaultHeight()
136136
{
137-
return BLOCK_WITDH;
137+
return BLOCK_WIDTH;
138138
}
139139
}

0 commit comments

Comments
 (0)