mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-12 01:27:27 +00:00
Small fix to avoid popping matrices when not needed.
This commit is contained in:
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;
|
||||
|
||||
|
||||
Reference in new issue
Block a user