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
if (votingOn != null)
{
boolean newLine = false;
// Has information
if (votingStatus != null)
{
@ -296,6 +298,8 @@ public class ServerSelectionPage extends ShopPageBase<ServerManager, ServerSelec
{
builder.addLore(votingColour + votingStatus);
}
newLine = true;
}
// Is voting
@ -305,9 +309,14 @@ public class ServerSelectionPage extends ShopPageBase<ServerManager, ServerSelec
{
builder.addLore(C.cYellow + votingOn + ": " + C.cWhite + value);
}
newLine = true;
}
builder.addLore("");
if (newLine)
{
builder.addLore("");
}
}
// Map