Skip to content

Commit

Permalink
Null check (#756)
Browse files Browse the repository at this point in the history
  • Loading branch information
ah-OOG-ah authored Nov 26, 2024
1 parent 5afb5d8 commit b85614f
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ public class MixinMinecraft {
at = @At(value = "INVOKE", target = "Lorg/lwjgl/opengl/Display;update()V", shift = At.Shift.AFTER, remap = false)
)
private void angelica$trackFrametimes(CallbackInfo ci) {
if (AngelicaMod.proxy == null) return;

long time = System.nanoTime();
AngelicaMod.proxy.putFrametime(time - angelica$lastFrameTime);
angelica$lastFrameTime = time;
Expand Down

0 comments on commit b85614f

Please sign in to comment.