diff options
Diffstat (limited to 'src/script/lua_api/l_item.cpp')
-rw-r--r-- | src/script/lua_api/l_item.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/script/lua_api/l_item.cpp b/src/script/lua_api/l_item.cpp index 46c1c98a0..e41d23fd1 100644 --- a/src/script/lua_api/l_item.cpp +++ b/src/script/lua_api/l_item.cpp @@ -508,7 +508,7 @@ int ModApiItemMod::l_register_item_raw(lua_State *L) std::string name; lua_getfield(L, table, "name"); if(lua_isstring(L, -1)){ - name = lua_tostring(L, -1); + name = readParam<std::string>(L, -1); verbosestream<<"register_item_raw: "<<name<<std::endl; } else { throw LuaError("register_item_raw: name is not defined or not a string"); |