mirror of
https://github.com/MineLittlePony/MineLittlePony.git
synced 2024-11-29 23:48:00 +01:00
Disable the custom camera frustum for ponies that are sleeping. Fixes ponies becoming invisible when sleeping next to them
This commit is contained in:
parent
e57ae69b44
commit
2f56d64cb5
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||||
|
|
Loading…
Reference in a new issue