mirror of
https://github.com/TotalFreedomMC/TF-LibsDisguises.git
synced 2025-02-11 11:40:29 +00:00
Don't do y offset if its a sleeping player (looks ugly)
This commit is contained in:
parent
ee589f443d
commit
8a3dd58559
1 changed files with 2 additions and 1 deletions
|
@ -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 a new issue