summaryrefslogtreecommitdiff
path: root/src/script/lua_api/l_item.cpp
diff options
context:
space:
mode:
authorShadowNinja <shadowninja@minetest.net>2014-03-15 16:28:59 -0400
committerShadowNinja <shadowninja@minetest.net>2014-03-15 16:28:59 -0400
commit31fe72dbac3d53e8da21ef116ccf99febbc5196e (patch)
tree2a040621c7ee34a67a09f50e7fe19bf9b6c34c90 /src/script/lua_api/l_item.cpp
parentf8b75555586e0e67d8320a804b9e077d29b96403 (diff)
downloadminetest-31fe72dbac3d53e8da21ef116ccf99febbc5196e.tar.gz
minetest-31fe72dbac3d53e8da21ef116ccf99febbc5196e.tar.bz2
minetest-31fe72dbac3d53e8da21ef116ccf99febbc5196e.zip
Remove lua_State parameter from LuaError::LuaError
Diffstat (limited to 'src/script/lua_api/l_item.cpp')
-rw-r--r--src/script/lua_api/l_item.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/script/lua_api/l_item.cpp b/src/script/lua_api/l_item.cpp
index 4b5c89792..094d0bb25 100644
--- a/src/script/lua_api/l_item.cpp
+++ b/src/script/lua_api/l_item.cpp
@@ -470,7 +470,7 @@ int ModApiItemMod::l_register_item_raw(lua_State *L)
name = lua_tostring(L, -1);
verbosestream<<"register_item_raw: "<<name<<std::endl;
} else {
- throw LuaError(NULL, "register_item_raw: name is not defined or not a string");
+ throw LuaError("register_item_raw: name is not defined or not a string");
}
// Check if on_use is defined
@@ -500,7 +500,7 @@ int ModApiItemMod::l_register_item_raw(lua_State *L)
content_t id = ndef->set(f.name, f);
if(id > MAX_REGISTERED_CONTENT){
- throw LuaError(NULL, "Number of registerable nodes ("
+ throw LuaError("Number of registerable nodes ("
+ itos(MAX_REGISTERED_CONTENT+1)
+ ") exceeded (" + name + ")");
}