From c7ae572c159dd96d26f695489be9dcdd6e7b6a48 Mon Sep 17 00:00:00 2001 From: libraryaddict Date: Sat, 4 Jan 2014 22:15:18 +1300 Subject: [PATCH] Add bounding box to cloned disguises --- src/me/libraryaddict/disguise/disguisetypes/MiscDisguise.java | 1 + src/me/libraryaddict/disguise/disguisetypes/MobDisguise.java | 3 +-- .../libraryaddict/disguise/disguisetypes/PlayerDisguise.java | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/me/libraryaddict/disguise/disguisetypes/MiscDisguise.java b/src/me/libraryaddict/disguise/disguisetypes/MiscDisguise.java index 5cc6e8dc..26461f6f 100644 --- a/src/me/libraryaddict/disguise/disguisetypes/MiscDisguise.java +++ b/src/me/libraryaddict/disguise/disguisetypes/MiscDisguise.java @@ -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; } diff --git a/src/me/libraryaddict/disguise/disguisetypes/MobDisguise.java b/src/me/libraryaddict/disguise/disguisetypes/MobDisguise.java index c8519478..5fbc98dd 100644 --- a/src/me/libraryaddict/disguise/disguisetypes/MobDisguise.java +++ b/src/me/libraryaddict/disguise/disguisetypes/MobDisguise.java @@ -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; } diff --git a/src/me/libraryaddict/disguise/disguisetypes/PlayerDisguise.java b/src/me/libraryaddict/disguise/disguisetypes/PlayerDisguise.java index f3dd8db8..cb35e31f 100644 --- a/src/me/libraryaddict/disguise/disguisetypes/PlayerDisguise.java +++ b/src/me/libraryaddict/disguise/disguisetypes/PlayerDisguise.java @@ -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; }