From 0bda7bccda4674166a0193100a40545f4eabfa59 Mon Sep 17 00:00:00 2001 From: SamB440 Date: Fri, 19 Jul 2024 17:46:35 +0100 Subject: [PATCH] Rewrite horse.jumpStrength -> modern equivalent --- .../ac/grim/grimac/utils/latency/CompensatedEntities.java | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/main/java/ac/grim/grimac/utils/latency/CompensatedEntities.java b/src/main/java/ac/grim/grimac/utils/latency/CompensatedEntities.java index 3175aa7c92..43852975f4 100644 --- a/src/main/java/ac/grim/grimac/utils/latency/CompensatedEntities.java +++ b/src/main/java/ac/grim/grimac/utils/latency/CompensatedEntities.java @@ -133,8 +133,14 @@ public void updateAttributes(int entityID, List modern equivalent + if (attribute == Attributes.HORSE_JUMP_STRENGTH) { + attribute = Attributes.GENERIC_JUMP_STRENGTH; + } + final Optional valuedAttribute = entity.getAttribute(attribute); if (!valuedAttribute.isPresent()) { // Not an attribute we want to track