camera + gui fix

This commit is contained in:
Sen 2025-03-26 12:44:49 +01:00
parent d45cd7ec2c
commit 4a3828e310
2 changed files with 5 additions and 5 deletions

View file

@ -148,14 +148,14 @@ public class GuiSkin extends GuiList<GuiSkin.SkinEntry>
// GuiSkin.this.gm.getTextureManager().bindTexture(tex);
GlState.enableBlend();
GlState.enableDepth();
boolean flag = GuiSkin.this.gm.showHud;
GuiSkin.this.gm.showHud = false;
boolean flag = GuiSkin.this.gm.cameraUsed;
GuiSkin.this.gm.cameraUsed = true;
EntityTexManager.altTexture = tex;
EntityTexManager.altLayer = this.dynId;
EntityTexManager.altNpcLayer = this.dynId == -1 && this.charinfo != null ? this.charinfo.skin : null;
drawEntity(x + 32, y + 60, 28.0f
/ GuiSkin.this.gm.thePlayer.getHeight(), -45.0f, -20.0f, GuiSkin.this.gm.thePlayer);
GuiSkin.this.gm.showHud = flag;
GuiSkin.this.gm.cameraUsed = flag;
EntityTexManager.altTexture = null;
EntityTexManager.altLayer = -1;
EntityTexManager.altNpcLayer = null;