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

View file

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