mirror of
https://github.com/libraryaddict/LibsDisguises.git
synced 2024-11-04 08:59:47 +01:00
Rename tall disguises thingy so its not so horrible to find, also have it turned off if they specifically turn self disguises on
This commit is contained in:
parent
824edfe698
commit
d1319f800c
@ -99,7 +99,7 @@ public abstract class Disguise {
|
||||
private boolean customName = true;
|
||||
@Getter
|
||||
@Setter
|
||||
private boolean hideTallSelfDisguise = DisguiseConfig.isHideTallSelfDisguises();
|
||||
private boolean tallDisguisesVisible = !DisguiseConfig.isHideTallSelfDisguises();
|
||||
|
||||
public Disguise(DisguiseType disguiseType) {
|
||||
this.disguiseType = disguiseType;
|
||||
@ -124,7 +124,7 @@ public abstract class Disguise {
|
||||
protected void clone(Disguise disguise) {
|
||||
disguise.setDisguiseName(getDisguiseName());
|
||||
disguise.setCustomName(isCustomName());
|
||||
disguise.setHideTallSelfDisguise(isHideTallSelfDisguise());
|
||||
disguise.setTallDisguisesVisible(isTallDisguisesVisible());
|
||||
|
||||
disguise.setReplaceSounds(isSoundsReplaced());
|
||||
disguise.setViewSelfDisguise(isSelfDisguiseVisible());
|
||||
@ -549,7 +549,7 @@ public abstract class Disguise {
|
||||
setupWatcher();
|
||||
}
|
||||
|
||||
if (getEntity() instanceof Player && isSelfDisguiseVisible() && isHideTallSelfDisguise() &&
|
||||
if (getEntity() instanceof Player && isSelfDisguiseVisible() && isTallDisguisesVisible() &&
|
||||
!getType().isCustom()) {
|
||||
DisguiseValues values = DisguiseValues.getDisguiseValues(getType());
|
||||
|
||||
@ -958,6 +958,10 @@ public abstract class Disguise {
|
||||
*/
|
||||
@Deprecated
|
||||
public Disguise setViewSelfDisguise(boolean viewSelfDisguise) {
|
||||
if (viewSelfDisguise && !isTallDisguisesVisible()) {
|
||||
setTallDisguisesVisible(true);
|
||||
}
|
||||
|
||||
if (isSelfDisguiseVisible() != viewSelfDisguise) {
|
||||
this.viewSelfDisguise = viewSelfDisguise;
|
||||
|
||||
|
@ -114,7 +114,7 @@ public class ParamInfoManager {
|
||||
// Add these last as it's what we want to present to be called the least
|
||||
for (String methodName : new String[]{"setSelfDisguiseVisible", "setHideHeldItemFromSelf",
|
||||
"setHideArmorFromSelf", "setHearSelfDisguise", "setHidePlayer", "setExpires", "setNotifyBar",
|
||||
"setBossBarColor", "setBossBarStyle", "setHideTallSelfDisguise"}) {
|
||||
"setBossBarColor", "setBossBarStyle", "setTallDisguisesVisible"}) {
|
||||
try {
|
||||
Class cl = boolean.class;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user