diff options
| author | Alexander Pickering <alexandermpickering@gmail.com> | 2017-09-02 17:34:27 -0400 |
|---|---|---|
| committer | Alexander Pickering <alexandermpickering@gmail.com> | 2017-09-02 17:34:27 -0400 |
| commit | 9ba957b99603590b099f4bcd22a9cc86525dbcde (patch) | |
| tree | 1e807a2c80367025d26ed28859f35d3c4454aced /gamemode/core/inventory/item.lua | |
| parent | 984b841c008ba29ead9ecb12aa86a57de2b0597a (diff) | |
| download | artery-9ba957b99603590b099f4bcd22a9cc86525dbcde.tar.gz artery-9ba957b99603590b099f4bcd22a9cc86525dbcde.tar.bz2 artery-9ba957b99603590b099f4bcd22a9cc86525dbcde.zip | |
Various debugging things
Diffstat (limited to 'gamemode/core/inventory/item.lua')
| -rw-r--r-- | gamemode/core/inventory/item.lua | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gamemode/core/inventory/item.lua b/gamemode/core/inventory/item.lua index a13efa9..a598fc2 100644 --- a/gamemode/core/inventory/item.lua +++ b/gamemode/core/inventory/item.lua @@ -39,6 +39,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(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 |
