refactor: initial inventory only to owner

This commit is contained in:
cha0s 2019-10-07 05:15:57 -05:00
parent 06018ca0ee
commit e917548fd1

View File

@ -147,6 +147,14 @@ export class Receptacle extends decorate(Trait) {
this.qtyListeners.delete(item);
}
toNetwork(informed) {
const json = this.toJSON();
if (informed !== this.entity) {
json.params.slots = {};
}
return json;
}
methods() {
return {