mirror of
https://github.com/MineLittlePony/MineLittlePony.git
synced 2024-11-26 14:27:59 +01:00
Fixed mis-positioned nameplates when riding
This commit is contained in:
parent
85462d5a69
commit
c08c2a7180
1 changed files with 8 additions and 0 deletions
|
@ -157,6 +157,14 @@ public class RenderPony<T extends EntityLivingBase> {
|
|||
y -= 0.25F;
|
||||
}
|
||||
|
||||
if (entity.isRiding()) {
|
||||
y += entity.getRidingEntity().getEyeHeight();
|
||||
}
|
||||
|
||||
if (entity.isPlayerSleeping()) {
|
||||
y /= 2;
|
||||
}
|
||||
|
||||
return initial + y;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue