diff --git a/packages/inventory/src/traits/wielder.js b/packages/inventory/src/traits/wielder.js index 19ec422..de3d1b4 100644 --- a/packages/inventory/src/traits/wielder.js +++ b/packages/inventory/src/traits/wielder.js @@ -44,6 +44,9 @@ export default () => class Wielder extends decorate(Trait) { acceptAction: ({action, value}) => { const hotbarMatch = action.match(/^HotbarSlot(\d)/); + if (hotbarMatch && !this.entity.isAcceptingInput) { + return undefined; + } if (hotbarMatch && value) { this.entity.activeSlotIndex = (parseInt(hotbarMatch[1], 10) + 10) % 10; return undefined;