mirror of
https://github.com/jimathy/jim_bridge.git
synced 2026-11-26 05:14:45 +00:00
Update itemcontrol.lua
This commit is contained in:
1 parent
8efec21408
commit
610f492762
1 file changed
+1
-1
@@ -518,7 +518,7 @@ local InvFunc = {
|
||||
hasItem =
|
||||
function(item, amount, src)
|
||||
if src then
|
||||
local serverItemCheck = exports[TgiannInv]:GetItem(src, item, nil, true) or 0
|
||||
local serverItemCheck = exports[TgiannInv]:GetItemCount(src, item, nil, true) or 0
|
||||
return serverItemCheck >= amount, serverItemCheck
|
||||
else
|
||||
local localItemCheck = exports[TgiannInv]:GetItemCount(item) or 0
|
||||
|
||||
Reference in new issue
Block a user