From c157040b77787063073228ceb471dce4b05e349c Mon Sep 17 00:00:00 2001 From: libraryaddict Date: Mon, 27 Mar 2017 02:06:17 +1300 Subject: [PATCH] Minor cleanup --- .../libraryaddict/disguise/utilities/DisguiseUtilities.java | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/me/libraryaddict/disguise/utilities/DisguiseUtilities.java b/src/me/libraryaddict/disguise/utilities/DisguiseUtilities.java index db55d16c..89ffd339 100644 --- a/src/me/libraryaddict/disguise/utilities/DisguiseUtilities.java +++ b/src/me/libraryaddict/disguise/utilities/DisguiseUtilities.java @@ -1131,7 +1131,7 @@ public class DisguiseUtilities { } } - String ldTeamName = null; + String ldTeamName = "LD Pushing"; // If we are creating a new scoreboard because the current one must not be modified if (pOption == DisguisePushing.CREATE_SCOREBOARD) { @@ -1140,11 +1140,9 @@ public class DisguiseUtilities { // Give the teamname a custom name ldTeamName = ldTeamName.substring(0, Math.min(12, ldTeamName.length())) + "_LDP"; - } else if (ldTeam == null) { - ldTeamName = "LDPushing"; } - if (ldTeamName != null && (ldTeam = scoreboard.getTeam(ldTeamName)) == null) { + if (ldTeam == null && (ldTeam = scoreboard.getTeam(ldTeamName)) == null) { ldTeam = scoreboard.registerNewTeam(ldTeamName); }