Skip to content

Commit

Permalink
Make sure the npc icon is not overwritten after being changed
Browse files Browse the repository at this point in the history
  • Loading branch information
KrisAphalon committed Nov 23, 2024
1 parent 3cd79ab commit 8cde8de
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/app/npc/update-npc-image.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}

0 comments on commit 8cde8de

Please sign in to comment.