mirror of
https://github.com/horizon-rust/horizon.git
synced 2026-11-07 17:21:49 -10:00
Format the framerate limit hook call
Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
1 parent
fc111a8fc0
commit
57b8346713
1 file changed
+5
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user