mirror of
https://github.com/jimathy/jim_bridge.git
synced 2026-08-19 06:46:04 +01:00
Remove "Offline" check from canCarry()
This commit is contained in:
@@ -640,7 +640,7 @@ function canCarry(itemTable, src)
|
|||||||
end
|
end
|
||||||
for k, v in pairs(itemTable) do
|
for k, v in pairs(itemTable) do
|
||||||
local itemInfo = Items[k]
|
local itemInfo = Items[k]
|
||||||
if not itemInfo and not Player.Offline then
|
if not itemInfo then
|
||||||
resultTable[k] = true
|
resultTable[k] = true
|
||||||
else
|
else
|
||||||
resultTable[k] = (totalWeight + (itemInfo.weight * v)) <= InventoryWeight
|
resultTable[k] = (totalWeight + (itemInfo.weight * v)) <= InventoryWeight
|
||||||
@@ -657,7 +657,7 @@ function canCarry(itemTable, src)
|
|||||||
end
|
end
|
||||||
for k, v in pairs(itemTable) do
|
for k, v in pairs(itemTable) do
|
||||||
local itemInfo = Items[k]
|
local itemInfo = Items[k]
|
||||||
if not itemInfo and not Player.Offline then
|
if not itemInfo then
|
||||||
resultTable[k] = true
|
resultTable[k] = true
|
||||||
else
|
else
|
||||||
resultTable[k] = (totalWeight + (itemInfo.weight * v)) <= InventoryWeight
|
resultTable[k] = (totalWeight + (itemInfo.weight * v)) <= InventoryWeight
|
||||||
|
|||||||
Reference in New Issue
Block a user