diff options
| author | Alexander Pickering <alexandermpickering@gmail.com> | 2017-09-08 18:48:13 -0400 |
|---|---|---|
| committer | Alexander Pickering <alexandermpickering@gmail.com> | 2017-09-08 18:48:13 -0400 |
| commit | 22f3c6d96fcb560c13445d4a6135ca3f01d27197 (patch) | |
| tree | bbabd4bc9d6b96acbbc6248833c602f8f3249a04 /gamemode/core/inventory/item.lua | |
| parent | 13a87c24b79ff4db6e1917409ce8a11b1d72b6e6 (diff) | |
| download | artery-22f3c6d96fcb560c13445d4a6135ca3f01d27197.tar.gz artery-22f3c6d96fcb560c13445d4a6135ca3f01d27197.tar.bz2 artery-22f3c6d96fcb560c13445d4a6135ca3f01d27197.zip | |
Deleted a lot of code
Deleted code that was not being used, and some of the images too.
Diffstat (limited to 'gamemode/core/inventory/item.lua')
| -rw-r--r-- | gamemode/core/inventory/item.lua | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gamemode/core/inventory/item.lua b/gamemode/core/inventory/item.lua index a598fc2..80e2a88 100644 --- a/gamemode/core/inventory/item.lua +++ b/gamemode/core/inventory/item.lua @@ -18,6 +18,7 @@ Items may also have methods from one or more interfaces registered with RegisterInterface ]] +local log = nrequire("log.lua") local itm = {} local required_fields = { "Name","Serialize","DeSerialize" @@ -30,9 +31,9 @@ function itm.RegisterItem(tbl) end --assert(items[tbl.Name] == nil, string.format("Attempted to register 2 items with the same name %q",tbl.Name)) if items[tbl.Name] ~= nil then - MsgC(Color(255,255,0),"WARNING: attemtpted to register 2 items with the same name " .. tbl.Name .. "\n") + log.warn(string.format("Attempted to register 2 items with the same name: %q, overwriteing previous",tbl.Name)) else - MsgC(Color(0,255,0),"Registered Item " .. tbl.Name .. "\n") + log.info(string.format("Registered item %s",tbl.Name)) end items[tbl.Name] = tbl --print("Registered item: " .. tbl.Name) |
