mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-06 03:21:49 +00:00
fix generator loading
This commit is contained in:
parent
259f40d5cf
commit
3eec97f631
2 changed files with 5 additions and 5 deletions
|
|
@ -29,7 +29,7 @@ void LuaHeightmap::setSeed(int64_t seed) {
|
|||
|
||||
static int l_dump(lua::State* L) {
|
||||
if (auto heightmap = touserdata<LuaHeightmap>(L, 1)) {
|
||||
auto filename = tostring(L, 2);
|
||||
auto filename = require_string(L, 2);
|
||||
if (!files::is_valid_name(filename)) {
|
||||
throw std::runtime_error("invalid file name");
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue