Set strider entity offset properly if not a player entity

This commit is contained in:
DoctorMacc 2020-07-01 20:27:39 -04:00
parent c17f21eedc
commit 699ae0b88e
1 changed files with 1 additions and 1 deletions

View File

@ -141,7 +141,7 @@ public class JavaEntitySetPassengersTranslator extends PacketTranslator<ServerEn
yOffset = 1.3f;
break;
case STRIDER:
yOffset = 2.8200102f;
yOffset = passenger.getEntityType() == EntityType.PLAYER ? 2.8200102f : 1.6f;
break;
}
Vector3f offset = Vector3f.from(0f, yOffset, 0f);