mirror of
https://github.com/jimathy/jim_bridge.git
synced 2026-11-22 11:38:34 +00:00
change CodeM metadata check to info
This commit is contained in:
1 parent
6c3d0ffc5e
commit
04b3f87b32
1 file changed
+2
-2
@@ -349,7 +349,7 @@ end)
|
||||
--- ```
|
||||
function dupeWarn(src, item, amount)
|
||||
local name = getPlayer(src).name
|
||||
print("^5DupeWarn^7: "..name.." (^1"..tostring(src).."^7) ^2Tried to remove item '^3"..item.."^7' but it wasn't there")
|
||||
print("^5DupeWarn^7: "..name.." (^1"..tostring(src).."^7) ^2Tried to remove item '^3"..item.."^7'^2 but it wasn't there^7")
|
||||
if not debugMode then
|
||||
DropPlayer(src, name.."("..tostring(src)..") Kicked for suspected duplicating items: "..item)
|
||||
end
|
||||
@@ -452,7 +452,7 @@ function getDurability(item)
|
||||
for _, v in pairs(itemcheck) do
|
||||
if v.name == item and v.slot <= lowestSlot then
|
||||
lowestSlot = v.slot
|
||||
durability = v.metadata.durability
|
||||
durability = v.info.durability
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in new issue
Block a user