diff --git a/src/common/hotbar-store.ts b/src/common/hotbar-store.ts index 7de8ff7617..3126b13413 100644 --- a/src/common/hotbar-store.ts +++ b/src/common/hotbar-store.ts @@ -285,7 +285,7 @@ export class HotbarStore extends BaseStore { } } - switchToPrevious() { + switchToPrevious = () => { let index = this.activeHotbarIndex - 1; if (index < 0) { @@ -293,9 +293,9 @@ export class HotbarStore extends BaseStore { } this.setActiveHotbar(index); - } + }; - switchToNext() { + switchToNext = () => { let index = this.activeHotbarIndex + 1; if (index >= this.hotbars.length) { @@ -303,7 +303,7 @@ export class HotbarStore extends BaseStore { } this.setActiveHotbar(index); - } + }; /** * Checks if entity already pinned to the active hotbar