mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-13 08:35:20 +02:00
Handle LuaErrors in Lua -> C++ calls on LuaJIT
This commit is contained in:
@@ -653,7 +653,7 @@ ItemStack read_item(lua_State* L, int index,Server* srv)
|
||||
}
|
||||
else
|
||||
{
|
||||
throw LuaError(L, "Expecting itemstack, itemstring, table or nil");
|
||||
throw LuaError(NULL, "Expecting itemstack, itemstring, table or nil");
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user