aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorkwolekr <kwolekr@minetest.net>2015-04-17 18:39:18 -0400
committerkwolekr <kwolekr@minetest.net>2015-04-17 18:39:37 -0400
commite0889c6c03d48fabc15adf06af811ab2bfc2fe23 (patch)
tree11b96727e48e246ad360e51e71432c0059369622 /src
parent5f0b36b8b70faa36b20343342567471c8f50b7f2 (diff)
downloadminetest-e0889c6c03d48fabc15adf06af811ab2bfc2fe23.tar.gz
minetest-e0889c6c03d48fabc15adf06af811ab2bfc2fe23.tar.bz2
minetest-e0889c6c03d48fabc15adf06af811ab2bfc2fe23.zip
Schematics: Fix core.schematic_create()
Diffstat (limited to 'src')
-rw-r--r--src/script/lua_api/l_mapgen.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/script/lua_api/l_mapgen.cpp b/src/script/lua_api/l_mapgen.cpp
index c063919ba..daa040e3b 100644
--- a/src/script/lua_api/l_mapgen.cpp
+++ b/src/script/lua_api/l_mapgen.cpp
@@ -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());