From fe19fd440ca7145cb5011cadff8ec337f9869be4 Mon Sep 17 00:00:00 2001 From: libraryaddict Date: Tue, 31 Dec 2013 18:10:29 +1300 Subject: [PATCH] Nasty hack for Mr apple to spew on --- .../libraryaddict/disguise/disguisetypes/Disguise.java | 3 +++ .../disguise/utilities/ReflectionManager.java | 10 +++++----- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/src/me/libraryaddict/disguise/disguisetypes/Disguise.java b/src/me/libraryaddict/disguise/disguisetypes/Disguise.java index bf88ebbd..f7180644 100644 --- a/src/me/libraryaddict/disguise/disguisetypes/Disguise.java +++ b/src/me/libraryaddict/disguise/disguisetypes/Disguise.java @@ -199,6 +199,9 @@ public abstract class Disguise { } } } + if (isModifyBoundingBox()) { + DisguiseUtilities.doBoundingBox(disguise); + } // If the vectorY isn't 0. Cos if it is. Then it doesn't want to send any vectors. // If this disguise has velocity sending enabled and the entity is flying. if (vectorY != 0 && isVelocitySent() && (alwaysSendVelocity || !getEntity().isOnGround())) { diff --git a/src/me/libraryaddict/disguise/utilities/ReflectionManager.java b/src/me/libraryaddict/disguise/utilities/ReflectionManager.java index e5ba4c08..322005cb 100644 --- a/src/me/libraryaddict/disguise/utilities/ReflectionManager.java +++ b/src/me/libraryaddict/disguise/utilities/ReflectionManager.java @@ -268,24 +268,24 @@ public class ReflectionManager { z = field.getDouble(boundingBox); break; case 4: - if (entity.getType() != EntityType.PLAYER) { + // if (entity.getType() != EntityType.PLAYER) { field.setDouble(boundingBox, x + newBox.getX()); - } + // } break; case 5: field.setDouble(boundingBox, y + newBox.getY()); break; case 6: - if (entity.getType() != EntityType.PLAYER) { + // if (entity.getType() != EntityType.PLAYER) { field.setDouble(boundingBox, z + newBox.getZ()); - } + // } break; default: throw new Exception("Error while setting the bounding box, more doubles than I thought??"); } } } - setSize(entity, entitySize); + // setSize(entity, entitySize); } catch (Exception ex) { ex.printStackTrace(); }