mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
generation.load_fragment fix
This commit is contained in:
parent
51a8ed6737
commit
b4ba2da955
1 changed files with 1 additions and 1 deletions
|
|
@ -44,7 +44,7 @@ static int l_create_fragment(lua::State* L) {
|
|||
|
||||
static int l_load_fragment(lua::State* L) {
|
||||
dv::value map;
|
||||
if (!lua::isstring(L, 1)) {
|
||||
if (lua::isstring(L, 1)) {
|
||||
io::path path = lua::require_string(L, 1);
|
||||
if (!io::exists(path)) {
|
||||
throw std::runtime_error("file "+path.string()+" does not exist");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue