Skip to content

Commit

Permalink
Update SpellPartWidget.java
Browse files Browse the repository at this point in the history
  • Loading branch information
StellarWitch7 authored Jul 30, 2024
1 parent 0ed11cd commit bb3c676
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ public void render(DrawContext context, int mouseX, int mouseY, float delta) {
// We're casting the big decimals down to doubles here, which means we're definitely not implementing
// infinite scrollability yet. We weren't using doubles in the renderer before though, so having that
// bit of extra precision might already make a big difference. If we actually do run into more issues,
// I *can* convert the renderer to big decimals as well, but that would type in an insane amount of
// I *can* convert the renderer to big decimals as well, but that would result in an insane amount of
// object allocations every frame, which could very well impact performance significantly.
x.doubleValue(), y.doubleValue(), size.doubleValue(), 0, delta,
size -> (float) Math.clamp(1 / (size / context.getScaledWindowHeight() * 2) - 0.2, 0, 1),
Expand Down

0 comments on commit bb3c676

Please sign in to comment.