Don't do y offset if its a sleeping player (looks ugly)
This commit is contained in:
@@ -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()) {
|
||||||
|
Reference in New Issue
Block a user