mirror of
https://github.com/allaryin/FairyFactions.git
synced 2026-09-12 04:15:10 -05:00
Fixed infinite loop with yOffset check.
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user