From 04b3f87b326c4f540e33a9ebcac8e1c1040840b8 Mon Sep 17 00:00:00 2001 From: Jim Shield Date: Tue, 29 Apr 2025 19:55:30 +0100 Subject: [PATCH] change CodeM metadata check to `info` --- shared/itemcontrol.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/shared/itemcontrol.lua b/shared/itemcontrol.lua index 10c4b4a..7c7a660 100644 --- a/shared/itemcontrol.lua +++ b/shared/itemcontrol.lua @@ -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