Small fix to avoid popping matrices when not needed.

This commit is contained in:
Luis C.M committed 2023-01-05 18:21:38 -06:00
1 parent ad689440aa
commit 58afabc43b
1 file changed
+4 -1
@@ -84,7 +84,10 @@ public class ClientEventHandler {
public void onRenderPlayer(RenderPlayerEvent.Post event) {
EntityPlayer player = event.entityPlayer;
if (Client.playerModelData.containsKey(player.getUniqueID())) {
GL11.glPopMatrix();
PlayerModelData data = Client.playerModelData.get(player.getUniqueID());
if (data.enabled()) {
GL11.glPopMatrix();
}
}
ClientEventHandler.renderingPlayer = null;