Fixed a crazy double new line
This commit is contained in:
parent
5c8b550d6f
commit
b62042718f
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue