Evtl. fix unerklärliche async client fehler

This commit is contained in:
hydrant
2021-04-21 19:37:01 +02:00
parent d413c5c8cb
commit 4c35539b23
5 changed files with 20 additions and 11 deletions

View File

@@ -15,7 +15,7 @@ export default function attachmentManager(game: IGame) {
{
attachments: {},
addFor: async function (entity, id) {
addFor: function (entity, id) {
if (this.attachments.hasOwnProperty(id)) {
if (!entity.__attachmentObjects) {
entity.__attachmentObjects = {};