mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-13 00:37:52 +00:00
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 files changed
+4
-1
No files matched your search
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user