Spaces:
Sleeping
Sleeping
change to id
Browse files- convex/world.ts +1 -1
convex/world.ts
CHANGED
@@ -193,7 +193,7 @@ export const leaveWorld = mutation({
|
|
193 |
await insertInput(ctx, world._id, 'leave', {
|
194 |
playerId: existingPlayer.id,
|
195 |
});
|
196 |
-
world.players.delete(
|
197 |
},
|
198 |
});
|
199 |
|
|
|
193 |
await insertInput(ctx, world._id, 'leave', {
|
194 |
playerId: existingPlayer.id,
|
195 |
});
|
196 |
+
world.players.delete(existingPlayer.id);
|
197 |
},
|
198 |
});
|
199 |
|