This commit is contained in:
RandomityGuy 2024-07-21 18:09:17 +05:30
parent d275730b3e
commit 77108d12af

View file

@ -1984,17 +1984,19 @@ class MarbleWorld extends Scheduler {
// pktClone.sort((a, b) -> { // pktClone.sort((a, b) -> {
// return (a.c == client.id) ? 1 : (b.c == client.id) ? -1 : 0; // return (a.c == client.id) ? 1 : (b.c == client.id) ? -1 : 0;
// }); // });
marble.clearNetFlags();
if (client.state != GAME) { if (client.state != GAME) {
allRecv = false; allRecv = false;
continue; // Only send if in game continue; // Only send if in game
} }
marble.clearNetFlags();
for (packet in packets) { for (packet in packets) {
client.sendBytes(packet); client.sendBytes(packet);
} }
} }
if (allRecv) // if (allRecv)
this.marble.clearNetFlags(); this.marble.clearNetFlags();
} }
} }
for (pi in this.pathedInteriors) { for (pi in this.pathedInteriors) {