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);