Fixed infinite loop with yOffset check.

This commit is contained in:
Ammon Lauritzen 2016-03-02 16:22:00 -06:00
parent 0c978bfe64
commit 0128aba6ec

View File

@ -261,10 +261,10 @@ public class EntityFairy extends EntityAnimal {
public double getYOffset() {
if (ridingEntity != null) {
if (this.worldObj.isRemote) {
return this.getYOffset() - ( flymode() ? 1.15F : 1.35f );
return super.getYOffset() - ( flymode() ? 1.15F : 1.35f );
}
return this.getYOffset() + ( flymode() ? 0.65F : 0.55F )
return super.getYOffset() + ( flymode() ? 0.65F : 0.55F )
- ( ridingEntity instanceof EntityChicken ? 0.0F : 0.15F );
} else {
return this.getYOffset();