From 6ff824ace6ed47a19edfbc782ce71f8d8011f282 Mon Sep 17 00:00:00 2001 From: cha0s Date: Thu, 4 Jul 2024 15:17:49 -0500 Subject: [PATCH] chore: tidy --- app/ecs-components/wielder.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/ecs-components/wielder.js b/app/ecs-components/wielder.js index cf912e1..49316e8 100644 --- a/app/ecs-components/wielder.js +++ b/app/ecs-components/wielder.js @@ -3,8 +3,7 @@ import Component from '@/ecs/component.js'; export default class Wielder extends Component { instanceFromSchema() { const {ecs} = this; - const Instance = super.instanceFromSchema(); - return class WielderInstance extends Instance { + return class WielderInstance extends super.instanceFromSchema() { activeItem() { const {Inventory, Wielder} = ecs.get(this.entity); return Inventory.item(Wielder.activeSlot + 1);