Add bounding box to cloned disguises
This commit is contained in:
parent
400b73c232
commit
c7ae572c15
@ -111,6 +111,7 @@ public class MiscDisguise extends TargetedDisguise {
|
|||||||
disguise.setHideArmorFromSelf(isHidingArmorFromSelf());
|
disguise.setHideArmorFromSelf(isHidingArmorFromSelf());
|
||||||
disguise.setHideHeldItemFromSelf(isHidingHeldItemFromSelf());
|
disguise.setHideHeldItemFromSelf(isHidingHeldItemFromSelf());
|
||||||
disguise.setVelocitySent(isVelocitySent());
|
disguise.setVelocitySent(isVelocitySent());
|
||||||
|
disguise.setModifyBoundingBox(isModifyBoundingBox());
|
||||||
disguise.setWatcher(getWatcher().clone(disguise));
|
disguise.setWatcher(getWatcher().clone(disguise));
|
||||||
return disguise;
|
return disguise;
|
||||||
}
|
}
|
||||||
|
@ -21,14 +21,12 @@ public class MobDisguise extends TargetedDisguise {
|
|||||||
this.isAdult = isAdult;
|
this.isAdult = isAdult;
|
||||||
createDisguise(disguiseType, replaceSounds);
|
createDisguise(disguiseType, replaceSounds);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@Deprecated
|
@Deprecated
|
||||||
public MobDisguise(EntityType entityType) {
|
public MobDisguise(EntityType entityType) {
|
||||||
this(entityType, true);
|
this(entityType, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@Deprecated
|
@Deprecated
|
||||||
public MobDisguise(EntityType entityType, boolean isAdult) {
|
public MobDisguise(EntityType entityType, boolean isAdult) {
|
||||||
this(entityType, isAdult, true);
|
this(entityType, isAdult, true);
|
||||||
@ -48,6 +46,7 @@ public class MobDisguise extends TargetedDisguise {
|
|||||||
disguise.setHideArmorFromSelf(isHidingArmorFromSelf());
|
disguise.setHideArmorFromSelf(isHidingArmorFromSelf());
|
||||||
disguise.setHideHeldItemFromSelf(isHidingHeldItemFromSelf());
|
disguise.setHideHeldItemFromSelf(isHidingHeldItemFromSelf());
|
||||||
disguise.setVelocitySent(isVelocitySent());
|
disguise.setVelocitySent(isVelocitySent());
|
||||||
|
disguise.setModifyBoundingBox(isModifyBoundingBox());
|
||||||
disguise.setWatcher(getWatcher().clone(disguise));
|
disguise.setWatcher(getWatcher().clone(disguise));
|
||||||
return disguise;
|
return disguise;
|
||||||
}
|
}
|
||||||
|
@ -22,6 +22,7 @@ public class PlayerDisguise extends TargetedDisguise {
|
|||||||
disguise.setHideArmorFromSelf(isHidingArmorFromSelf());
|
disguise.setHideArmorFromSelf(isHidingArmorFromSelf());
|
||||||
disguise.setHideHeldItemFromSelf(isHidingHeldItemFromSelf());
|
disguise.setHideHeldItemFromSelf(isHidingHeldItemFromSelf());
|
||||||
disguise.setVelocitySent(isVelocitySent());
|
disguise.setVelocitySent(isVelocitySent());
|
||||||
|
disguise.setModifyBoundingBox(isModifyBoundingBox());
|
||||||
disguise.setWatcher(getWatcher().clone(disguise));
|
disguise.setWatcher(getWatcher().clone(disguise));
|
||||||
return disguise;
|
return disguise;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user