@adatechnology/game-weapons-three 0.14.1 → 0.14.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -141,6 +141,7 @@ function createAccessoryBench(options) {
141
141
  camera.updateProjectionMatrix();
142
142
  };
143
143
  const onKeyDown = (event) => {
144
+ if (host.playerHeld?.()) return;
144
145
  if (event.repeat || event.ctrlKey || event.metaKey || event.altKey || TEXT_FIELDS.has(event.target?.tagName ?? "")) return;
145
146
  const handled2 = event.code === ACCESSORY_KEYS.light ? act(ACTION_IDS.light) : event.code === ACCESSORY_KEYS.laser ? act(ACTION_IDS.laser) : event.code === ACCESSORY_KEYS.underbarrel ? act(ACTION_IDS.underbarrel) : event.code === ACCESSORY_KEYS.stock && toggleStock();
146
147
  if (!handled2) return;
@@ -11066,4 +11067,4 @@ export {
11066
11067
  DEFAULT_EXPLOSIVES_SCENE,
11067
11068
  createExplosivesTestModule
11068
11069
  };
11069
- //# sourceMappingURL=chunk-PRC75VKC.js.map
11070
+ //# sourceMappingURL=chunk-XMVSA7UT.js.map