Add bounding box to cloned disguises

This commit is contained in:
libraryaddict 2014-01-04 22:15:18 +13:00
parent 400b73c232
commit c7ae572c15
3 changed files with 3 additions and 2 deletions

View file

@ -111,6 +111,7 @@ public class MiscDisguise extends TargetedDisguise {
disguise.setHideArmorFromSelf(isHidingArmorFromSelf());
disguise.setHideHeldItemFromSelf(isHidingHeldItemFromSelf());
disguise.setVelocitySent(isVelocitySent());
disguise.setModifyBoundingBox(isModifyBoundingBox());
disguise.setWatcher(getWatcher().clone(disguise));
return disguise;
}

View file

@ -21,14 +21,12 @@ public class MobDisguise extends TargetedDisguise {
this.isAdult = isAdult;
createDisguise(disguiseType, replaceSounds);
}
@Deprecated
public MobDisguise(EntityType entityType) {
this(entityType, true);
}
@Deprecated
public MobDisguise(EntityType entityType, boolean isAdult) {
this(entityType, isAdult, true);
@ -48,6 +46,7 @@ public class MobDisguise extends TargetedDisguise {
disguise.setHideArmorFromSelf(isHidingArmorFromSelf());
disguise.setHideHeldItemFromSelf(isHidingHeldItemFromSelf());
disguise.setVelocitySent(isVelocitySent());
disguise.setModifyBoundingBox(isModifyBoundingBox());
disguise.setWatcher(getWatcher().clone(disguise));
return disguise;
}

View file

@ -22,6 +22,7 @@ public class PlayerDisguise extends TargetedDisguise {
disguise.setHideArmorFromSelf(isHidingArmorFromSelf());
disguise.setHideHeldItemFromSelf(isHidingHeldItemFromSelf());
disguise.setVelocitySent(isVelocitySent());
disguise.setModifyBoundingBox(isModifyBoundingBox());
disguise.setWatcher(getWatcher().clone(disguise));
return disguise;
}