From e917548fd10161ac9a8937b5aabfb2a925c115cd Mon Sep 17 00:00:00 2001 From: cha0s Date: Mon, 7 Oct 2019 05:15:57 -0500 Subject: [PATCH] refactor: initial inventory only to owner --- common/traits/receptacle.trait.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/common/traits/receptacle.trait.js b/common/traits/receptacle.trait.js index 0cf384f..6a6cd77 100644 --- a/common/traits/receptacle.trait.js +++ b/common/traits/receptacle.trait.js @@ -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 {