refactor: initial inventory only to owner
This commit is contained in:
parent
06018ca0ee
commit
e917548fd1
|
@ -147,6 +147,14 @@ export class Receptacle extends decorate(Trait) {
|
||||||
this.qtyListeners.delete(item);
|
this.qtyListeners.delete(item);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
toNetwork(informed) {
|
||||||
|
const json = this.toJSON();
|
||||||
|
if (informed !== this.entity) {
|
||||||
|
json.params.slots = {};
|
||||||
|
}
|
||||||
|
return json;
|
||||||
|
}
|
||||||
|
|
||||||
methods() {
|
methods() {
|
||||||
return {
|
return {
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user