mirror of
https://github.com/MineLittlePony/MineLittlePony.git
synced 2025-02-15 17:14:22 +01:00
Fixed shadows rendering on sleeping players
This commit is contained in:
parent
137371f394
commit
10f44f9326
1 changed files with 2 additions and 2 deletions
|
@ -112,7 +112,7 @@ public class RenderPonyPlayer extends RenderPlayer implements IRenderPony {
|
|||
@Override
|
||||
public float prepareScale(AbstractClientPlayer player, float ticks) {
|
||||
|
||||
if (!player.isRiding()) {
|
||||
if (!player.isRiding() && !player.isPlayerSleeping()) {
|
||||
float x = player.width/2;
|
||||
float y = 0;
|
||||
|
||||
|
@ -147,7 +147,7 @@ public class RenderPonyPlayer extends RenderPlayer implements IRenderPony {
|
|||
|
||||
@Override
|
||||
public void doRenderShadowAndFire(Entity player, double x, double y, double z, float yaw, float ticks) {
|
||||
if (player.isRiding()) {
|
||||
if (player.isRiding() && ((AbstractClientPlayer)player).isPlayerSleeping()) {
|
||||
super.doRenderShadowAndFire(player, x, y, z, yaw, ticks);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue