fix: events

This commit is contained in:
cha0s 2019-10-15 03:12:29 -05:00
parent 727e29a99c
commit ae19826040

View File

@ -124,7 +124,6 @@ export class Receptacle extends decorate(Trait) {
item.destroy(); item.destroy();
} }
} }
this.entity.emit('inventoryChanged');
}; };
this.qtyListeners.set(item, listener); this.qtyListeners.set(item, listener);
item.on('qtyChanged', listener); item.on('qtyChanged', listener);
@ -291,6 +290,7 @@ export class Receptacle extends decorate(Trait) {
leftItem, leftItem,
rightItem rightItem
); );
this.entity.emit('inventoryChanged');
}, },
}; };