From 00d31698a17373997512422489a5f68f24e82cc3 Mon Sep 17 00:00:00 2001 From: MayaTheShy Date: Fri, 20 Feb 2026 04:32:12 -0500 Subject: [PATCH] refactor: filter players to display only those with valid positions and recent timestamps for improved clarity --- client/src/components/Map3D.jsx | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/client/src/components/Map3D.jsx b/client/src/components/Map3D.jsx index 5dba108..3b7155e 100644 --- a/client/src/components/Map3D.jsx +++ b/client/src/components/Map3D.jsx @@ -1297,9 +1297,11 @@ function Scene({ interactionMode, onInteraction }) { ))} {/* Players */} - {players.map((player) => ( - - ))} + {players + .filter((p) => p.position && Date.now() - (p.timestamp || 0) < 30000) + .map((player) => ( + + ))} {/* Camera controls */}