aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/me/shedaniel/rei/gui/widget/TabWidget.java
diff options
context:
space:
mode:
authorshedaniel <daniel@shedaniel.me>2020-03-19 04:30:52 +0800
committershedaniel <daniel@shedaniel.me>2020-03-19 04:30:52 +0800
commit1f6fc41eaebc3c565bef12606ff98a076fc32e89 (patch)
tree33a5c1cd135f6c5ecd8b85fd602bd8c290cf9fb7 /src/main/java/me/shedaniel/rei/gui/widget/TabWidget.java
parent1764648e4f536b2e6ac1b7d1cb3c3fb60e206b29 (diff)
downloadRoughlyEnoughItems-1f6fc41eaebc3c565bef12606ff98a076fc32e89.tar.gz
RoughlyEnoughItems-1f6fc41eaebc3c565bef12606ff98a076fc32e89.tar.bz2
RoughlyEnoughItems-1f6fc41eaebc3c565bef12606ff98a076fc32e89.zip
20w12a
Signed-off-by: shedaniel <daniel@shedaniel.me>
Diffstat (limited to 'src/main/java/me/shedaniel/rei/gui/widget/TabWidget.java')
-rw-r--r--src/main/java/me/shedaniel/rei/gui/widget/TabWidget.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/me/shedaniel/rei/gui/widget/TabWidget.java b/src/main/java/me/shedaniel/rei/gui/widget/TabWidget.java
index cef638b1a..6ff021538 100644
--- a/src/main/java/me/shedaniel/rei/gui/widget/TabWidget.java
+++ b/src/main/java/me/shedaniel/rei/gui/widget/TabWidget.java
@@ -107,7 +107,7 @@ public class TabWidget extends WidgetWithBounds {
public void render(int mouseX, int mouseY, float delta) {
if (shown) {
minecraft.getTextureManager().bindTexture(REIHelper.getInstance().isDarkThemeEnabled() ? CHEST_GUI_TEXTURE_DARK : CHEST_GUI_TEXTURE);
- this.blit(bounds.x, bounds.y + 2, u + (selected ? bounds.width : 0), v, bounds.width, (selected ? bounds.height + 2 : bounds.height - 1));
+ this.drawTexture(bounds.x, bounds.y + 2, u + (selected ? bounds.width : 0), v, bounds.width, (selected ? bounds.height + 2 : bounds.height - 1));
logo.setZ(100);
logo.render(new Rectangle(bounds.getCenterX() - 8, bounds.getCenterY() - 5, 16, 16), mouseX, mouseY, delta);
if (containsMouse(mouseX, mouseY)) {