Skip to content

Commit

Permalink
Don't bother updating scale attribute if no change is made
Browse files Browse the repository at this point in the history
  • Loading branch information
Axionize committed Sep 24, 2024
1 parent c34ad88 commit 1beedd7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ protected void initAttributes(GrimPlayer player) {
.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)) {
if (player.getClientVersion().isOlderThan(ClientVersion.V_1_20_5) || oldValue != newValue) {
return oldValue;
}
// Elytra, standing, sneaking (1.14)
Expand Down

0 comments on commit 1beedd7

Please sign in to comment.