From: Perttu Ahola Date: Thu, 17 Nov 2011 22:05:00 +0000 (+0200) Subject: Make added nodes give the corresponding NodeItem as of now (placeholder code) X-Git-Url: http://81.2.79.47:8989/gitweb/?a=commitdiff_plain;h=4503b03b26b48b546ce3837120f149cd696692a2;p=zefram%2Fminetest%2Fminetest_engine.git Make added nodes give the corresponding NodeItem as of now (placeholder code) --- diff --git a/src/scriptapi.cpp b/src/scriptapi.cpp index d25df18c..a18c144d 100644 --- a/src/scriptapi.cpp +++ b/src/scriptapi.cpp @@ -352,6 +352,7 @@ static int l_register_node(lua_State *L) f.material.crackiness = 0; f.material.crumbliness = 0; f.material.cuttability = 0; + f.dug_item = std::string("NodeItem \"")+name+"\" 1"; nodedef->set(name, f); return 0; /* number of results */