mirror of
https://git.rezel.net/LudoTech/traque.git
synced 2026-04-11 00:30:19 +02:00
Filter anormal positions and add position with scan
This commit is contained in:
@@ -116,8 +116,9 @@ export function initTeamSocket() {
|
||||
}
|
||||
});
|
||||
|
||||
socket.on("send_position", () => {
|
||||
socket.on("send_position", (position) => {
|
||||
if (!teamId) return;
|
||||
game.updateLocation(teamId, position);
|
||||
game.sendLocation(teamId);
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user