mirror of
https://github.com/jimathy/jim_bridge.git
synced 2026-12-03 15:54: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 =
|
hasItem =
|
||||||
function(item, amount, src)
|
function(item, amount, src)
|
||||||
if src then
|
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
|
return serverItemCheck >= amount, serverItemCheck
|
||||||
else
|
else
|
||||||
local localItemCheck = exports[TgiannInv]:GetItemCount(item) or 0
|
local localItemCheck = exports[TgiannInv]:GetItemCount(item) or 0
|
||||||
|
|||||||
Reference in new issue
Block a user