Don't ignore config view self disguise option, fixes #502
This commit is contained in:
parent
695633e876
commit
9166120071
@ -837,7 +837,7 @@ public abstract class Disguise {
|
||||
* @return viewSelfDisguise
|
||||
*/
|
||||
public boolean isSelfDisguiseVisible() {
|
||||
return viewSelfDisguise;
|
||||
return DisguiseConfig.isViewDisguises() && viewSelfDisguise;
|
||||
}
|
||||
|
||||
public void setSelfDisguiseVisible(boolean selfDisguiseVisible) {
|
||||
@ -1055,11 +1055,10 @@ public abstract class Disguise {
|
||||
*/
|
||||
@Deprecated
|
||||
public Disguise setViewSelfDisguise(boolean viewSelfDisguise) {
|
||||
if (viewSelfDisguise && !isTallDisguisesVisible()) {
|
||||
setTallDisguisesVisible(true);
|
||||
if (isSelfDisguiseVisible() == viewSelfDisguise || !DisguiseConfig.isViewDisguises()) {
|
||||
return this;
|
||||
}
|
||||
|
||||
if (isSelfDisguiseVisible() != viewSelfDisguise) {
|
||||
this.viewSelfDisguise = viewSelfDisguise;
|
||||
|
||||
if (getEntity() != null && getEntity() instanceof Player) {
|
||||
@ -1071,7 +1070,6 @@ public abstract class Disguise {
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return this;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user