Skip to content

Commit

Permalink
More Intuitive
Browse files Browse the repository at this point in the history
Since I hope to implement the same logic in other hud elements, some elements would also use getScale() in determining box size. Returning -1 would bork that up and is just shorthand for the text renderer to fallback to hud gettextscale anyway, so default to that instead
  • Loading branch information
machiecodes committed Jan 8, 2025
1 parent f037a05 commit 11afe12
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,7 @@ private double getModuleWidth(HudRenderer renderer, Module module) {
}

private double getScale() {
return customScale.get() ? scale.get() : -1;
return customScale.get() ? scale.get() : Hud.get().getTextScale();
}

public enum Sort {
Expand Down

0 comments on commit 11afe12

Please sign in to comment.