mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-12 16:15:20 +02:00
Correct misleading detached inventory error message
Looks like a bit of hasty copying and pasting from s_item.cpp.
This commit is contained in:
@@ -232,7 +232,7 @@ bool ScriptApiDetached::getDetachedInventoryCallback(
|
|||||||
// Should be a table
|
// Should be a table
|
||||||
if(lua_type(L, -1) != LUA_TTABLE)
|
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);
|
lua_pop(L, 1);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user