Alex and Steve skins now switch to x64 or x32 models automatically.

This commit is contained in:
Luis C.M committed 2022-05-28 05:53:14 -05:00
1 parent 2b15ba9197
commit 4aa1799ec3
6 files changed
+69 -30

No files matched your search

@@ -363,7 +363,8 @@ public class RenderNPCInterface extends RenderLiving{
int totalWidth = bufferedimage.getWidth();
int totalHeight = bufferedimage.getHeight();
if (totalHeight > 32 && npc.display.modelType == 0) {
npc.display.x64texture = totalHeight > 32;
if (npc.display.x64texture && (npc.display.modelType == 0 || npc.display.modelType == 3)) {
bufferedimage = bufferedimage.getSubimage(0, 0, totalWidth, 32);
}