Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
yuesha-yc committed Dec 19, 2024
1 parent e294079 commit b199395
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ public void render(GuiGraphics graphics, int mouseX, int mouseY, float partialTi
RenderSystem.blendFunc(770, 771);
int u = texU + (offsetDir == 0 ? width : offsetDir == 2 ? -width : 0) * getStateAsInt();
int v = texV + (offsetDir == 1 ? height : offsetDir == 3 ? -height : 0) * getStateAsInt();
graphics.blit(texture, getX(), getY(), u, v, width, height, TEXH, TEXW);
graphics.blit(texture, getX(), getY(), u, v, width, height, TEXW, TEXH);
if (!getMessage().getString().isEmpty()) {
int txtCol = 0xE0E0E0;
if (!this.active)
Expand Down Expand Up @@ -303,7 +303,7 @@ public void render(GuiGraphics graphics, int mouseX, int mouseY, float partialTi
RenderSystem.blendFunc(770, 771);
int u = texU + (offsetDir == 0 ? width : offsetDir == 2 ? -width : 0) * getStateAsInt();
int v = texV + (offsetDir == 1 ? height : offsetDir == 3 ? -height : 0) * getStateAsInt();
graphics.blit(texture, getX(), getY(), u, v, width, height, TEXH, TEXW);
graphics.blit(texture, getX(), getY(), u, v, width, height, TEXW, TEXH);
if (!getMessage().getString().isEmpty()) {
int txtCol = 0xE0E0E0;
if (!this.active)
Expand Down

0 comments on commit b199395

Please sign in to comment.