fix: only send item traits to owner
This commit is contained in:
parent
0305106ce5
commit
39175dc729
|
@ -137,8 +137,10 @@ export class Receptacle extends decorate(Trait) {
|
||||||
}
|
}
|
||||||
|
|
||||||
packets(informed) {
|
packets(informed) {
|
||||||
|
if (informed === this.entity) {
|
||||||
return this.packetUpdates;
|
return this.packetUpdates;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
removeListenersForItem(item) {
|
removeListenersForItem(item) {
|
||||||
item.off('qtyChanged', this.qtyListeners.get(item));
|
item.off('qtyChanged', this.qtyListeners.get(item));
|
||||||
|
|
Loading…
Reference in New Issue
Block a user