stall bug

This commit is contained in:
RandomityGuy 2024-07-17 13:03:22 +05:30
parent ebd3f03e13
commit 4cf4748813

View file

@ -2129,10 +2129,12 @@ class Marble extends GameObject {
// Pad null move on client // Pad null move on client
this.connection.moveManager.duplicateLastMove(); this.connection.moveManager.duplicateLastMove();
} }
if (ProfilerUI.instance.fps < 30) { if (this.connection != null) {
this.connection.moveManager.stall = true; // Our fps fucked, stall pls if (ProfilerUI.instance.fps < 30) {
} else { this.connection.moveManager.stall = true; // Our fps fucked, stall pls
this.connection.moveManager.stall = false; } else {
this.connection.moveManager.stall = false;
}
} }
if (p.netFlags & MarbleNetFlags.UpdateTrapdoor > 0) { if (p.netFlags & MarbleNetFlags.UpdateTrapdoor > 0) {
for (tId => tTime in p.trapdoorUpdates) { for (tId => tTime in p.trapdoorUpdates) {