Fix LibsDisguises
This commit is contained in:
parent
33e803134b
commit
090ce6e8c5
@ -111,9 +111,9 @@ public class PlayerDisguise extends TargetedDisguise {
|
|||||||
|
|
||||||
if (scoreboardName == null) {
|
if (scoreboardName == null) {
|
||||||
if (isUpsideDown()) {
|
if (isUpsideDown()) {
|
||||||
scoreboardName = new DisguiseUtilities.DScoreTeam(new String[]{"", getProfileName(), ""});
|
scoreboardName = new DisguiseUtilities.DScoreTeam(this, new String[]{"", getProfileName(), ""});
|
||||||
} else {
|
} else {
|
||||||
scoreboardName = DisguiseUtilities.createExtendedName(getName());
|
scoreboardName = DisguiseUtilities.createExtendedName(this);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -76,7 +76,8 @@ import java.util.stream.Collectors;
|
|||||||
public class DisguiseUtilities {
|
public class DisguiseUtilities {
|
||||||
@Setter
|
@Setter
|
||||||
public static class DScoreTeam {
|
public static class DScoreTeam {
|
||||||
public DScoreTeam(String[] name) {
|
public DScoreTeam(PlayerDisguise disguise, String[] name) {
|
||||||
|
this.disguise = disguise;
|
||||||
this.split = name;
|
this.split = name;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1547,10 +1548,10 @@ public class DisguiseUtilities {
|
|||||||
return boards;
|
return boards;
|
||||||
}
|
}
|
||||||
|
|
||||||
public static DScoreTeam createExtendedName(String name) {
|
public static DScoreTeam createExtendedName(PlayerDisguise disguise) {
|
||||||
String[] split = getExtendedNameSplit(null, name);
|
String[] split = getExtendedNameSplit(null, disguise.getName());
|
||||||
|
|
||||||
return new DScoreTeam(split);
|
return new DScoreTeam(disguise, split);
|
||||||
}
|
}
|
||||||
|
|
||||||
public static String getUniqueTeam() {
|
public static String getUniqueTeam() {
|
||||||
|
Loading…
Reference in New Issue
Block a user