Merge pull request #808 from rhilenova/player_list
Added pre/post to player list rendering in GuiIngameForge.
This commit is contained in:
commit
d55ddfcebc
|
@ -745,6 +745,7 @@ public class GuiIngameForge extends GuiIngame
|
|||
|
||||
if (mc.gameSettings.keyBindPlayerList.pressed && (!mc.isIntegratedServerRunning() || handler.playerInfoList.size() > 1 || scoreobjective != null))
|
||||
{
|
||||
if (pre(PLAYER_LIST)) return;
|
||||
this.mc.mcProfiler.startSection("playerList");
|
||||
List players = handler.playerInfoList;
|
||||
int maxPlayers = handler.currentServerMaxPlayers;
|
||||
|
@ -811,6 +812,7 @@ public class GuiIngameForge extends GuiIngame
|
|||
zLevel -= 100.0F;
|
||||
}
|
||||
}
|
||||
post(PLAYER_LIST);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -25,7 +25,8 @@ public class RenderGameOverlayEvent extends Event
|
|||
TEXT,
|
||||
HEALTHMOUNT,
|
||||
JUMPBAR,
|
||||
CHAT
|
||||
CHAT,
|
||||
PLAYER_LIST
|
||||
}
|
||||
|
||||
public final float partialTicks;
|
||||
|
|
Loading…
Reference in New Issue