Merge branch 'main' of https://github.com/MihailRis/voxelcore
This commit is contained in:
commit
963cedf2b8
@ -44,7 +44,7 @@ static int l_create_fragment(lua::State* L) {
|
|||||||
|
|
||||||
static int l_load_fragment(lua::State* L) {
|
static int l_load_fragment(lua::State* L) {
|
||||||
dv::value map;
|
dv::value map;
|
||||||
if (!lua::isstring(L, 1)) {
|
if (lua::isstring(L, 1)) {
|
||||||
io::path path = lua::require_string(L, 1);
|
io::path path = lua::require_string(L, 1);
|
||||||
if (!io::exists(path)) {
|
if (!io::exists(path)) {
|
||||||
throw std::runtime_error("file "+path.string()+" does not exist");
|
throw std::runtime_error("file "+path.string()+" does not exist");
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user