From e4c458e5c6a7cfab0e99336820cb8fce19a40072 Mon Sep 17 00:00:00 2001 From: RandomityGuy <31925790+RandomityGuy@users.noreply.github.com> Date: Sun, 21 Jul 2024 18:09:17 +0530 Subject: [PATCH] final --- src/MarbleWorld.hx | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/MarbleWorld.hx b/src/MarbleWorld.hx index 3c0f3761..2097fba6 100644 --- a/src/MarbleWorld.hx +++ b/src/MarbleWorld.hx @@ -1985,17 +1985,19 @@ class MarbleWorld extends Scheduler { // pktClone.sort((a, b) -> { // return (a.c == client.id) ? 1 : (b.c == client.id) ? -1 : 0; // }); + marble.clearNetFlags(); + if (client.state != GAME) { allRecv = false; continue; // Only send if in game } - marble.clearNetFlags(); + for (packet in packets) { client.sendBytes(packet); } } - if (allRecv) - this.marble.clearNetFlags(); + // if (allRecv) + this.marble.clearNetFlags(); } } for (pi in this.pathedInteriors) {