From 1d7e1cc1eea3d4957b2480299a6c3d36ba19ff5f Mon Sep 17 00:00:00 2001 From: cha0s Date: Mon, 27 May 2019 22:17:25 -0500 Subject: [PATCH] refactor: app doesn't manage held item --- client/app.js | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/client/app.js b/client/app.js index 2d2da83..9b36abf 100644 --- a/client/app.js +++ b/client/app.js @@ -357,17 +357,6 @@ export class App extends decorate(class {}) { this.stage.camera = camera; // Avoid the initial 'lerp. camera.realPosition = camera.position; - // Manage held item. - entity.on('activeSlotIndexChanged', (oldIndex, newIndex) => { - const oldItem = entity.itemInSlot(oldIndex); - if (oldItem) { - oldItem.wielder = null; - } - const newItem = entity.itemInSlot(newIndex); - if (newItem) { - newItem.wielder = entity; - } - }); } } }