diff options
| author | Alexander Pickering <alexandermpickering@gmail.com> | 2017-10-09 16:20:46 -0400 |
|---|---|---|
| committer | Alexander Pickering <alexandermpickering@gmail.com> | 2017-10-09 16:20:46 -0400 |
| commit | da81a0a23a3704dd2de3ab2249496c1ad1912d1c (patch) | |
| tree | 915edc671acbb292191adad2f25f87ba26e567cf /gamemode/core/inventory/item.lua | |
| parent | 497be6ff15989c7bf9de5beb138d2ef042dca6bd (diff) | |
| download | artery-da81a0a23a3704dd2de3ab2249496c1ad1912d1c.tar.gz artery-da81a0a23a3704dd2de3ab2249496c1ad1912d1c.tar.bz2 artery-da81a0a23a3704dd2de3ab2249496c1ad1912d1c.zip | |
Updated internal representation of inventories
Diffstat (limited to 'gamemode/core/inventory/item.lua')
| -rw-r--r-- | gamemode/core/inventory/item.lua | 2 |
1 files changed, 1 insertions, 1 deletions
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 |
