Skip to content

Commit

Permalink
fix(client): weapon check on item use
Browse files Browse the repository at this point in the history
Probably resolves #1561.
  • Loading branch information
thelindat committed Dec 20, 2023
1 parent 743c57a commit dc9c72e
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 @@ -416,7 +416,7 @@ local function useItem(data, cb)

if not canUseItem(data.ammo and true) then return end

if currentWeapon and currentWeapon?.timer > 100 then return end
if currentWeapon?.timer and currentWeapon.timer > 100 then return end

if invOpen and data.close then client.closeInventory() end

Expand Down

0 comments on commit dc9c72e

Please sign in to comment.