fix: events
This commit is contained in:
parent
727e29a99c
commit
ae19826040
|
@ -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');
|
||||||
},
|
},
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue
Block a user