Nasty hack for Mr apple to spew on

This commit is contained in:
libraryaddict 2013-12-31 18:10:29 +13:00
parent 62febe6d39
commit fe19fd440c
2 changed files with 8 additions and 5 deletions

@ -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 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 this disguise has velocity sending enabled and the entity is flying.
if (vectorY != 0 && isVelocitySent() && (alwaysSendVelocity || !getEntity().isOnGround())) { if (vectorY != 0 && isVelocitySent() && (alwaysSendVelocity || !getEntity().isOnGround())) {

@ -268,24 +268,24 @@ public class ReflectionManager {
z = field.getDouble(boundingBox); z = field.getDouble(boundingBox);
break; break;
case 4: case 4:
if (entity.getType() != EntityType.PLAYER) { // if (entity.getType() != EntityType.PLAYER) {
field.setDouble(boundingBox, x + newBox.getX()); field.setDouble(boundingBox, x + newBox.getX());
} // }
break; break;
case 5: case 5:
field.setDouble(boundingBox, y + newBox.getY()); field.setDouble(boundingBox, y + newBox.getY());
break; break;
case 6: case 6:
if (entity.getType() != EntityType.PLAYER) { // if (entity.getType() != EntityType.PLAYER) {
field.setDouble(boundingBox, z + newBox.getZ()); field.setDouble(boundingBox, z + newBox.getZ());
} // }
break; break;
default: default:
throw new Exception("Error while setting the bounding box, more doubles than I thought??"); throw new Exception("Error while setting the bounding box, more doubles than I thought??");
} }
} }
} }
setSize(entity, entitySize); // setSize(entity, entitySize);
} catch (Exception ex) { } catch (Exception ex) {
ex.printStackTrace(); ex.printStackTrace();
} }