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.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;
} }

View File

@ -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;
} }

View File

@ -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;
} }