Don't do y offset if its a sleeping player (looks ugly)
This commit is contained in:
parent
ee589f443d
commit
8a3dd58559
@ -437,7 +437,8 @@ public class PacketsManager {
|
|||||||
*/
|
*/
|
||||||
private static double getYModifier(Entity entity, Disguise disguise) {
|
private static double getYModifier(Entity entity, Disguise disguise) {
|
||||||
double yMod = 0;
|
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;
|
yMod -= 0.13;
|
||||||
}
|
}
|
||||||
switch (disguise.getType()) {
|
switch (disguise.getType()) {
|
||||||
|
Loading…
Reference in New Issue
Block a user