Merge pull request #808 from rhilenova/player_list

Added pre/post to player list rendering in GuiIngameForge.
This commit is contained in:
LexManos 2013-09-30 22:52:59 -07:00
commit d55ddfcebc
2 changed files with 4 additions and 1 deletions

View File

@ -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);
}
}

View File

@ -25,7 +25,8 @@ public class RenderGameOverlayEvent extends Event
TEXT,
HEALTHMOUNT,
JUMPBAR,
CHAT
CHAT,
PLAYER_LIST
}
public final float partialTicks;