Skip to content

Commit

Permalink
fixed resource binding
Browse files Browse the repository at this point in the history
  • Loading branch information
ImToggle committed Aug 4, 2024
1 parent 467a94f commit 53dee4a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,7 @@ private void chatScale(CallbackInfoReturnable<Float> cir) {

@Unique
private void chatting$drawButton(ResourceLocation location, int left, int top, int right) {
mc.getTextureManager().bindTexture(chatting$DELETE);
mc.getTextureManager().bindTexture(location);
boolean hovered = chatting$isHovered(left, top, 9, 9);
OneColor color = hovered ? chatting$config().getChatButtonHoveredBackgroundColor() : chatting$config().getChatButtonBackgroundColor();
drawRect(left, top, right, top + 9, color.getRGB());
Expand Down

0 comments on commit 53dee4a

Please sign in to comment.