mirror of
https://github.com/allaryin/FairyFactions.git
synced 2026-04-25 08:04:06 -05:00
Fixed infinite loop with yOffset check.
This commit is contained in:
parent
0c978bfe64
commit
0128aba6ec
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user