Skip to content

Commit

Permalink
Vertically center the text shown on game portal signs (#284)
Browse files Browse the repository at this point in the history
Fixes #263
  • Loading branch information
haykam821 authored Nov 13, 2023
1 parent 95c1390 commit 31a71aa
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 31a71aa

Please sign in to comment.