refactor: renderTick the wielded

This commit is contained in:
cha0s 2021-02-06 05:58:43 -06:00
parent 114e361123
commit c1b672b882

View File

@ -305,6 +305,13 @@ export default (latus) => class Receptacle extends decorate(Trait) {
return -1;
}
renderTick(elapsed) {
const item = this.entity.itemInActiveSlot();
if (item) {
item.renderTick(elapsed);
}
}
removeListenersForItem(item) {
item.off('qtyChanged', this.qtyListeners.get(item));
this.qtyListeners.delete(item);