Format the framerate limit hook call

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
RatmirandClaude Opus 5.5 committed 2026-11-02 01:58:50 +01:00
1 parent fc111a8fc0
commit 57b8346713
1 file changed
+5 -1
+5 -1
View File
@@ -586,7 +586,11 @@ impl Game<'_> {
self.title.is_none(),
&mut hooked,
);
if hooked >= 1 { hooked.min(limit) } else { limit }
if hooked >= 1 {
hooked.min(limit)
} else {
limit
}
}
/// `Minecraft.runTick`'s frame limiter: `FramerateLimiter.limitDisplayFPS`
/// below 260 frames per second, sleeping then spin-waiting until the