Skip to content

Commit

Permalink
fix conditionall check
Browse files Browse the repository at this point in the history
  • Loading branch information
Axionize committed Sep 25, 2024
1 parent 02904a3 commit 885e959
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 885e959

Please sign in to comment.