mirror of
https://github.com/jimathy/jim_bridge.git
synced 2026-08-17 05:56:02 +01:00
Update itemcontrol.lua
This commit is contained in:
@@ -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