From 4350fae1d54747917fd0074c5e333bf8038a3e8b Mon Sep 17 00:00:00 2001 From: James Lyne Date: Wed, 28 Jul 2021 22:17:02 +0100 Subject: [PATCH] Fix uuid handling in player map --- src/store/mutations.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/store/mutations.ts b/src/store/mutations.ts index e6cf181..5f88492 100644 --- a/src/store/mutations.ts +++ b/src/store/mutations.ts @@ -416,6 +416,7 @@ export const mutations: MutationTree & Mutations = { const existing = state.players.get(player.name); existing!.health = player.health; + existing!.uuid = player.uuid; existing!.armor = player.armor; existing!.location = Object.assign(existing!.location, player.location); existing!.hidden = player.hidden; @@ -429,6 +430,7 @@ export const mutations: MutationTree & Mutations = { state.sortedPlayers.dirty = true; state.players.set(player.name, { name: player.name, + uuid: player.uuid, health: player.health, armor: player.armor, location: player.location,