From 4503b03b26b48b546ce3837120f149cd696692a2 Mon Sep 17 00:00:00 2001 From: Perttu Ahola Date: Fri, 18 Nov 2011 00:05:00 +0200 Subject: [PATCH] Make added nodes give the corresponding NodeItem as of now (placeholder code) --- src/scriptapi.cpp | 1 + 1 file changed, 1 insertion(+) 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 */ -- 2.30.2