From dc9c72e11077051fb0ee13f68d05accf9b40f325 Mon Sep 17 00:00:00 2001 From: Linden <65407488+thelindat@users.noreply.github.com> Date: Wed, 20 Dec 2023 13:24:12 +1100 Subject: [PATCH] fix(client): weapon check on item use Probably resolves #1561. --- client.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client.lua b/client.lua index 1a251b50f..9da8d3f81 100644 --- a/client.lua +++ b/client.lua @@ -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