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-Tag: 0.4.dev-20111201-0~115 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=4503b03b26b48b546ce3837120f149cd696692a2;p=oweals%2Fminetest.git Make added nodes give the corresponding NodeItem as of now (placeholder code) --- diff --git a/src/scriptapi.cpp b/src/scriptapi.cpp index d25df18cb..a18c144d3 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 */