Correct misleading detached inventory error message
authorCiaran Gultnieks <ciaran@ciarang.com>
Fri, 7 Mar 2014 21:06:43 +0000 (21:06 +0000)
committersapier <Sapier at GMX dot net>
Sun, 9 Mar 2014 10:16:09 +0000 (11:16 +0100)
Looks like a bit of hasty copying and pasting from s_item.cpp.

src/script/cpp_api/s_inventory.cpp

index 8542f0292356973c563e892962b05b346c578c1b..db3c13fe00a234fe20dc42f8a4b8842610cb929c 100644 (file)
@@ -232,7 +232,7 @@ bool ScriptApiDetached::getDetachedInventoryCallback(
        // Should be a table
        if(lua_type(L, -1) != LUA_TTABLE)
        {
-               errorstream<<"Item \""<<name<<"\" not defined"<<std::endl;
+               errorstream<<"Detached inventory \""<<name<<"\" not defined"<<std::endl;
                lua_pop(L, 1);
                return false;
        }