From 8cde8def70c0bb4fcbe10dab0fb7e49197cf96b8 Mon Sep 17 00:00:00 2001 From: Krzysztof Kaczmarzyk Date: Sat, 23 Nov 2024 23:22:22 +0100 Subject: [PATCH] Make sure the npc icon is not overwritten after being changed --- src/app/npc/update-npc-image.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/app/npc/update-npc-image.js b/src/app/npc/update-npc-image.js index c1ad388..bf7251e 100644 --- a/src/app/npc/update-npc-image.js +++ b/src/app/npc/update-npc-image.js @@ -62,5 +62,8 @@ export function updateNpcWithGameImage(npc, imgUrl) special: imgUrl } Engine.npcs.updateData([npc.d]) + Object.defineProperty(npc.d, 'icon', { + get() {return imgUrl}, set() {} + }) }, 1) }