Skip to content

Commit

Permalink
final
Browse files Browse the repository at this point in the history
  • Loading branch information
RandomityGuy committed Jul 21, 2024
1 parent d275730 commit 77108d1
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/MarbleWorld.hx
Original file line number Diff line number Diff line change
Expand Up @@ -1984,17 +1984,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) {
Expand Down

0 comments on commit 77108d1

Please sign in to comment.