From aacc6d798eb4e604f2d4c092c8311f2bd5d17ab3 Mon Sep 17 00:00:00 2001 From: haykam821 <24855774+haykam821@users.noreply.github.com> Date: Mon, 13 Nov 2023 13:04:16 -0500 Subject: [PATCH] Vertically center the text shown on game portal signs Fixes #263 --- .../plasmid/mixin/game/portal/SignBlockEntityMixin.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/xyz/nucleoid/plasmid/mixin/game/portal/SignBlockEntityMixin.java b/src/main/java/xyz/nucleoid/plasmid/mixin/game/portal/SignBlockEntityMixin.java index 645c505f..e9044722 100644 --- a/src/main/java/xyz/nucleoid/plasmid/mixin/game/portal/SignBlockEntityMixin.java +++ b/src/main/java/xyz/nucleoid/plasmid/mixin/game/portal/SignBlockEntityMixin.java @@ -78,12 +78,12 @@ public void setDisplay(GamePortalDisplay display) { @NotNull private Text getDisplayLine(GamePortalDisplay display, int line) { - if (line == 0) { + if (line == 1) { var name = display.get(GamePortalDisplay.NAME); if (name != null) { return name; } - } else if (line == 1) { + } else if (line == 2) { var playerCount = display.get(GamePortalDisplay.PLAYER_COUNT); if (playerCount != null) { return Text.translatable("text.plasmid.game.portal.player_count", playerCount);