#81 : Prevent walk after dragging zone

This commit is contained in:
2024-09-28 19:19:00 +02:00
parent a92675e4c0
commit cffab00974
3 changed files with 12 additions and 3 deletions

View File

@ -61,7 +61,7 @@ gameStore.connection!.on('character:move', (data: ExtendedCharacterT) => {
zoneStore.updateCharacter(data)
})
onMounted(() => {
onBeforeMount(() => {
gameStore.connection!.emit('zone:character:join', async (response: zoneLoadData) => {
// Fetch assets for new zone
await gameStore.fetchZoneAssets(response.zone.id)