diff --git a/src/main/java/ac/grim/grimac/utils/data/packetentity/PacketEntitySelf.java b/src/main/java/ac/grim/grimac/utils/data/packetentity/PacketEntitySelf.java index e7920822e9..21730c02d8 100644 --- a/src/main/java/ac/grim/grimac/utils/data/packetentity/PacketEntitySelf.java +++ b/src/main/java/ac/grim/grimac/utils/data/packetentity/PacketEntitySelf.java @@ -49,7 +49,7 @@ protected void initAttributes(GrimPlayer player) { getAttribute(Attributes.GENERIC_SCALE).get().withSetRewriter((oldValue, newValue) -> { // Required Version is 1.20.5 but getPossibleEyeHeights start referencing scale in 1.14+ // What's actually going on? Does this work, if it does how? - if (player.getClientVersion().isOlderThan(ClientVersion.V_1_20_5) || oldValue != newValue) { + if (oldValue.equals(newValue) || player.getClientVersion().isOlderThan(ClientVersion.V_1_20_5)) { return oldValue; } // Elytra, standing, sneaking (1.14)