Skip to content

Commit

Permalink
Change rendering method
Browse files Browse the repository at this point in the history
  • Loading branch information
Wide-Cat committed Dec 27, 2024
1 parent f481582 commit de82095
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
import meteordevelopment.meteorclient.utils.render.color.Color;
import meteordevelopment.orbit.EventHandler;
import net.minecraft.client.gui.DrawContext;
import net.minecraft.client.gui.PlayerSkinDrawer;
import net.minecraft.client.gui.hud.ChatHudLine;
import net.minecraft.client.network.PlayerListEntry;
import net.minecraft.client.render.RenderLayer;
Expand Down Expand Up @@ -457,9 +458,7 @@ private void drawTexture(DrawContext context, IChatHudLine line, int y) {
PlayerListEntry entry = mc.getNetworkHandler().getPlayerListEntry(sender.getId());
if (entry == null) return;

Identifier skin = entry.getSkinTextures().texture();

context.drawTexture(RenderLayer::getGuiTextured, skin, 0, y, 8, 8, 8, 8, 8, 8, 64, 64);
PlayerSkinDrawer.draw(context, entry.getSkinTextures(), 0, y, 8);
}

private GameProfile getSender(IChatHudLine line, String text) {
Expand Down

0 comments on commit de82095

Please sign in to comment.