Skip to content

Commit

Permalink
Fix horse jumping with viabackwards, fixes #1713
Browse files Browse the repository at this point in the history
  • Loading branch information
SamB440 committed Sep 11, 2024
1 parent c4c0634 commit 343e9ef
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ public PacketEntityHorse(GrimPlayer player, UUID uuid, EntityType type, double x
setAttribute(Attributes.GENERIC_STEP_HEIGHT, 1.0f);

final boolean preAttribute = player.getClientVersion().isOlderThan(ClientVersion.V_1_20_5);
trackAttribute(ValuedAttribute.ranged(Attributes.GENERIC_JUMP_STRENGTH, 0.7, 0, preAttribute ? 2 : 32));
trackAttribute(ValuedAttribute.ranged(Attributes.GENERIC_JUMP_STRENGTH, 0.7, 0, preAttribute ? 2 : 32)
.requiredVersion(player, ClientVersion.V_1_20_5));
trackAttribute(ValuedAttribute.ranged(Attributes.GENERIC_MOVEMENT_SPEED, 0.225f, 0, 1024));

if (EntityTypes.isTypeInstanceOf(type, EntityTypes.CHESTED_HORSE)) {
Expand Down

0 comments on commit 343e9ef

Please sign in to comment.