1
0
forked from noxious/client

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

@ -31,7 +31,6 @@ import ZoneEventTiles from '@/components/gameMaster/zoneEditor/zonePartials/Zone
const gameStore = useGameStore()
const zoneEditorStore = useZoneEditorStore()
console.log(zoneEditorStore.zone)
const tileMap = ref(null as Phaser.Tilemaps.Tilemap | null)

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)
})