mirror of
https://github.com/libraryaddict/LibsDisguises.git
synced 2024-12-13 15:16:50 +01:00
Hopefully fix an issue with vanilla names
This commit is contained in:
parent
8f37ff8e23
commit
0c9eeb8700
@ -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) {
|
||||
|
@ -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()) {
|
||||
|
Loading…
Reference in New Issue
Block a user