Skip to content

Commit

Permalink
fix(client): don't close inventory when disarmed
Browse files Browse the repository at this point in the history
Resolves #1708.
  • Loading branch information
thelindat committed May 20, 2024
1 parent bb8f029 commit 485070f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client.lua
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ local function canOpenInventory()

if IsPauseMenuActive() then return end

if invBusy or invOpen == nil or (currentWeapon and currentWeapon.timer ~= 0) then
if invBusy or invOpen == nil or (currentWeapon?.timer or 0) > 0 then
return shared.info('cannot open inventory', '(is busy)')
end

Expand Down

0 comments on commit 485070f

Please sign in to comment.