Make added nodes give the corresponding NodeItem as of now (placeholder code)
authorPerttu Ahola <celeron55@gmail.com>
Thu, 17 Nov 2011 22:05:00 +0000 (00:05 +0200)
committerPerttu Ahola <celeron55@gmail.com>
Tue, 29 Nov 2011 17:13:49 +0000 (19:13 +0200)
src/scriptapi.cpp

index d25df18cbd061487e44c9e037b99d574942266db..a18c144d3b8837e6cfc802ab2c9db4898725cc73 100644 (file)
@@ -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 */