mirror of
https://github.com/TotalFreedomMC/TF-LibsDisguises.git
synced 2025-02-11 11:40:29 +00:00
Minor cleanup
This commit is contained in:
parent
230d73813d
commit
c157040b77
1 changed files with 2 additions and 4 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue