From ae19826040f72c7e95e3856a6bf45c37288e8d9e Mon Sep 17 00:00:00 2001 From: cha0s Date: Tue, 15 Oct 2019 03:12:29 -0500 Subject: [PATCH] fix: events --- common/traits/receptacle.trait.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/traits/receptacle.trait.js b/common/traits/receptacle.trait.js index fafaf33..ddf9eef 100644 --- a/common/traits/receptacle.trait.js +++ b/common/traits/receptacle.trait.js @@ -124,7 +124,6 @@ export class Receptacle extends decorate(Trait) { item.destroy(); } } - this.entity.emit('inventoryChanged'); }; this.qtyListeners.set(item, listener); item.on('qtyChanged', listener); @@ -291,6 +290,7 @@ export class Receptacle extends decorate(Trait) { leftItem, rightItem ); + this.entity.emit('inventoryChanged'); }, };