Skip to content

Commit

Permalink
cope
Browse files Browse the repository at this point in the history
MineGame159 committed Aug 14, 2023
1 parent 135dade commit 74478bc
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -372,7 +372,7 @@ public int modifyChatWidth(int width) {
public void drawPlayerHead(DrawContext context, ChatHudLine.Visible line, int y, int color) {
if (!isActive() || !playerHeads.get()) return;

// Only draw the first line of multiple line messages
// Only draw the first line of multi line messages
if (((IChatHudLineVisible) (Object) line).meteor$isStartOfEntry()) {
RenderSystem.enableBlend();
RenderSystem.setShaderColor(1, 1, 1, Color.toRGBAA(color) / 255f);
@@ -402,6 +402,7 @@ private void drawTexture(DrawContext context, IChatHudLine line, int y) {
// Check prefix
if (text.startsWith(entry.prefix(), startOffset)) {
context.drawTexture(entry.texture(), 0, y, 8, 8, 0, 0, 64, 64, 64, 64);
return;
}
}

0 comments on commit 74478bc

Please sign in to comment.