Removed console.log(), fixed small bug

This commit is contained in:
2024-11-13 19:38:51 +01:00
parent d9947e29cf
commit dd5baa530d
3 changed files with 53 additions and 46 deletions

View File

@ -43,7 +43,7 @@ gameStore.connection!.on('zone:character:teleport', async (data: zoneLoadData) =
gameStore.connection!.on('zone:character:join', async (data: ZoneCharacter) => {
// If data is from the current user, don't add it to the store
if (data.id === gameStore.character?.id) return
if (data.character.id === gameStore.character?.id) return
zoneStore.addCharacter(data)
})