Don't do y offset if its a sleeping player (looks ugly)

This commit is contained in:
libraryaddict 2014-07-08 06:09:37 +12:00
parent ee589f443d
commit 8a3dd58559

View File

@ -437,7 +437,8 @@ public class PacketsManager {
*/
private static double getYModifier(Entity entity, Disguise disguise) {
double yMod = 0;
if (entity.getType() == EntityType.DROPPED_ITEM) {
if ((disguise.getType() != DisguiseType.PLAYER || !((PlayerWatcher) disguise.getWatcher()).isSleeping())
&& entity.getType() == EntityType.DROPPED_ITEM) {
yMod -= 0.13;
}
switch (disguise.getType()) {