diff options
author | Perttu Ahola <celeron55@gmail.com> | 2011-11-25 22:06:50 +0200 |
---|---|---|
committer | Perttu Ahola <celeron55@gmail.com> | 2011-11-29 19:13:52 +0200 |
commit | 425db289d59d6c9b9be29334a42c1bbb82fab87f (patch) | |
tree | 7bdd16ecb239976464b7d45967636c7ee15883eb /src | |
parent | d2eed169aed84c8e3860912dfcd8da15db334c79 (diff) | |
download | minetest-425db289d59d6c9b9be29334a42c1bbb82fab87f.tar.gz minetest-425db289d59d6c9b9be29334a42c1bbb82fab87f.tar.bz2 minetest-425db289d59d6c9b9be29334a42c1bbb82fab87f.zip |
Fix random node definition stuff
Diffstat (limited to 'src')
-rw-r--r-- | src/scriptapi.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/scriptapi.cpp b/src/scriptapi.cpp index a5454bea5..a6ac4a0f7 100644 --- a/src/scriptapi.cpp +++ b/src/scriptapi.cpp @@ -497,6 +497,9 @@ static int l_register_node(lua_State *L) // Default to getting the corresponding NodeItem when dug f.dug_item = std::string("NodeItem \"")+name+"\" 1"; + + // Default to unknown_block.png as all textures + f.setAllTextures("unknown_block.png"); /* Read definiton from Lua |