Skip to content
Snippets Groups Projects
Commit db25f753 authored by kwolekr's avatar kwolekr
Browse files

Fix erroneous lua_pop parameter

parent f0ae2da8
No related branches found
No related tags found
No related merge requests found
......@@ -475,9 +475,11 @@ bool ModApiMapgen::regDecoSchematic(lua_State *L,
lua_pop(L, 1);
lua_getfield(L, index, "schematic");
if (!read_schematic(L, -1, deco, getServer(L)))
if (!read_schematic(L, -1, deco, getServer(L))) {
lua_pop(L, 1);
return false;
lua_pop(L, -1);
}
lua_pop(L, 1);
if (!deco->filename.empty() &&
!deco->loadSchematicFile(resolver, replace_names)) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment