From da81a0a23a3704dd2de3ab2249496c1ad1912d1c Mon Sep 17 00:00:00 2001 From: Alexander Pickering Date: Mon, 9 Oct 2017 16:20:46 -0400 Subject: Updated internal representation of inventories --- gamemode/core/inventory/item.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gamemode/core/inventory/item.lua') diff --git a/gamemode/core/inventory/item.lua b/gamemode/core/inventory/item.lua index 80e2a88..2eb2fb3 100644 --- a/gamemode/core/inventory/item.lua +++ b/gamemode/core/inventory/item.lua @@ -40,7 +40,7 @@ function itm.RegisterItem(tbl) end function itm.GetItemByName(name) - assert(type(name) == "string",string.format("Attempted to get an item by name with a %s.")) + assert(type(name) == "string",string.format("Attempted to get an item by name with a %s.",type(name))) assert(items[name] ~= nil,string.format("Attempted to get item with invalid name %q Valid item names are:\n\t%s",name,table.concat(table.GetKeys(items),"\n\t"))) local item if items[name].init then -- cgit v1.2.3-70-g09d2