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