Skip to content

Commit

Permalink
Actually render the nametag in HITW and TGTTOS
Browse files Browse the repository at this point in the history
  • Loading branch information
anastarawneh committed Oct 28, 2024
1 parent d48fb80 commit fe3ae6a
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,13 @@ public void renderLabel(T entity, MatrixStack matrices, VertexConsumerProvider v
String playerName = player.getGameProfile().getName();
Game game = MCCINametagMod.GAME;
try {
if (game == Game.BATTLE_BOX) {
if (game == Game.HOLE_IN_THE_WALL) {
HoleInTheWall.setNametag();
}
else if (game == Game.TGTTOS) {
TGTTOS.setNametag();
}
else if (game == Game.BATTLE_BOX) {
float health = player.getHealth();
BattleBox.setNametag(health);
}
Expand Down

0 comments on commit fe3ae6a

Please sign in to comment.