Disable the custom camera frustum for ponies that are sleeping. Fixes ponies becoming invisible when sleeping next to them

This commit is contained in:
Sollace 2018-10-29 16:07:21 +02:00
parent e57ae69b44
commit 2f56d64cb5

View file

@ -39,7 +39,7 @@ public class RenderPony<T extends EntityLivingBase> {
} }
public ICamera getFrustrum(T entity, ICamera vanilla) { public ICamera getFrustrum(T entity, ICamera vanilla) {
if (!MineLittlePony.getConfig().frustrum) { if (entity.isPlayerSleeping() || !MineLittlePony.getConfig().frustrum) {
return vanilla; return vanilla;
} }
return frustrum.withCamera(entity, vanilla); return frustrum.withCamera(entity, vanilla);