From 4cf4748813e0b34c26b27f75a5721d34ac2a29b7 Mon Sep 17 00:00:00 2001 From: RandomityGuy <31925790+RandomityGuy@users.noreply.github.com> Date: Wed, 17 Jul 2024 13:03:22 +0530 Subject: [PATCH] stall bug --- src/Marble.hx | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/Marble.hx b/src/Marble.hx index a955ff61..e5b6425c 100644 --- a/src/Marble.hx +++ b/src/Marble.hx @@ -2129,10 +2129,12 @@ class Marble extends GameObject { // Pad null move on client this.connection.moveManager.duplicateLastMove(); } - if (ProfilerUI.instance.fps < 30) { - this.connection.moveManager.stall = true; // Our fps fucked, stall pls - } else { - this.connection.moveManager.stall = false; + if (this.connection != null) { + if (ProfilerUI.instance.fps < 30) { + this.connection.moveManager.stall = true; // Our fps fucked, stall pls + } else { + this.connection.moveManager.stall = false; + } } if (p.netFlags & MarbleNetFlags.UpdateTrapdoor > 0) { for (tId => tTime in p.trapdoorUpdates) {