refactor: filter players to display only those with valid positions and recent timestamps for improved clarity
This commit is contained in:
@@ -1297,9 +1297,11 @@ function Scene({ interactionMode, onInteraction }) {
|
|||||||
))}
|
))}
|
||||||
|
|
||||||
{/* Players */}
|
{/* Players */}
|
||||||
{players.map((player) => (
|
{players
|
||||||
<PlayerMarker key={player.playerID} player={player} />
|
.filter((p) => p.position && Date.now() - (p.timestamp || 0) < 30000)
|
||||||
))}
|
.map((player) => (
|
||||||
|
<PlayerMarker key={player.playerID} player={player} />
|
||||||
|
))}
|
||||||
|
|
||||||
{/* Camera controls */}
|
{/* Camera controls */}
|
||||||
<OrbitControls
|
<OrbitControls
|
||||||
|
|||||||
Reference in New Issue
Block a user