Schematics: Fix core.schematic_create()
authorkwolekr <kwolekr@minetest.net>
Fri, 17 Apr 2015 22:39:18 +0000 (18:39 -0400)
committerkwolekr <kwolekr@minetest.net>
Fri, 17 Apr 2015 22:39:37 +0000 (18:39 -0400)
src/script/lua_api/l_mapgen.cpp

index c063919ba9aca4a727176444fb7083c53b91a9e2..daa040e3b67771519d69adcfcefa497523cbf50d 100644 (file)
@@ -1037,6 +1037,7 @@ int ModApiMapgen::l_generate_decorations(lua_State *L)
 int ModApiMapgen::l_create_schematic(lua_State *L)
 {
        Schematic schem;
+       schem.m_ndef = getServer(L)->getNodeDefManager();
 
        Map *map = &(getEnv(L)->getMap());