Fixed a crazy double new line

This commit is contained in:
Sam 2018-08-18 20:20:27 +01:00 committed by Alexander Meech
parent 5c8b550d6f
commit b62042718f
1 changed files with 10 additions and 1 deletions

View File

@ -285,6 +285,8 @@ public class ServerSelectionPage extends ShopPageBase<ServerManager, ServerSelec
// Voting enabled // Voting enabled
if (votingOn != null) if (votingOn != null)
{ {
boolean newLine = false;
// Has information // Has information
if (votingStatus != null) if (votingStatus != null)
{ {
@ -296,6 +298,8 @@ public class ServerSelectionPage extends ShopPageBase<ServerManager, ServerSelec
{ {
builder.addLore(votingColour + votingStatus); builder.addLore(votingColour + votingStatus);
} }
newLine = true;
} }
// Is voting // Is voting
@ -305,10 +309,15 @@ public class ServerSelectionPage extends ShopPageBase<ServerManager, ServerSelec
{ {
builder.addLore(C.cYellow + votingOn + ": " + C.cWhite + value); builder.addLore(C.cYellow + votingOn + ": " + C.cWhite + value);
} }
newLine = true;
} }
if (newLine)
{
builder.addLore(""); builder.addLore("");
} }
}
// Map // Map
if (info.getMap() != null) if (info.getMap() != null)