Hopefully fix an issue with vanilla names

This commit is contained in:
libraryaddict 2022-07-25 15:50:45 +12:00
parent 8f37ff8e23
commit 0c9eeb8700
2 changed files with 1 additions and 2 deletions

View File

@ -988,7 +988,7 @@ public abstract class Disguise {
return false;
}
if (isDynamicName()) {
if (isDynamicName() && (!isPlayerDisguise() || !((PlayerDisguise) this).getName().equals("<Inherit>"))) {
String name;
if (getEntity() instanceof Player) {

View File

@ -345,7 +345,6 @@ public class PlayerDisguise extends TargetedDisguise {
resendDisguise = !DisguiseConfig.isScoreboardNames() || isStaticName(name) || isStaticName(getName()) || resendDisguise;
if (resendDisguise) {
playerName = name;
resendDisguise(name, false);
} else {
if (getName().isEmpty() && !name.isEmpty() && !isNameVisible()) {