summaryrefslogtreecommitdiff
path: root/src/content_mapnode.cpp
diff options
context:
space:
mode:
authorKahrl <kahrl@gmx.net>2011-09-19 17:08:42 +0200
committerKahrl <kahrl@gmx.net>2011-09-19 17:08:42 +0200
commitab42549b1e48ede22d96e9f4ac017bb5d1853724 (patch)
tree59ac441d7b357caf072c5a5e89a2f480936f07c5 /src/content_mapnode.cpp
parent02726f00031c8ffadf5298b037b595372be202ef (diff)
downloadminetest-ab42549b1e48ede22d96e9f4ac017bb5d1853724.tar.gz
minetest-ab42549b1e48ede22d96e9f4ac017bb5d1853724.tar.bz2
minetest-ab42549b1e48ede22d96e9f4ac017bb5d1853724.zip
Wielded tool updates, leaves and glass work now
Diffstat (limited to 'src/content_mapnode.cpp')
-rw-r--r--src/content_mapnode.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/content_mapnode.cpp b/src/content_mapnode.cpp
index 89171755e..70f465130 100644
--- a/src/content_mapnode.cpp
+++ b/src/content_mapnode.cpp
@@ -236,6 +236,8 @@ void content_mapnode_init()
if(new_style_leaves)
{
f->solidness = 0; // drawn separately, makes no faces
+ f->visual_solidness = 1;
+ f->setAllTextures("leaves.png");
f->setInventoryTextureCube("leaves.png", "leaves.png", "leaves.png");
}
else
@@ -287,6 +289,8 @@ void content_mapnode_init()
f->is_ground_content = true;
f->dug_item = std::string("MaterialItem2 ")+itos(i)+" 1";
f->solidness = 0; // drawn separately, makes no faces
+ f->visual_solidness = 1;
+ f->setAllTextures("glass.png");
f->setInventoryTextureCube("glass.png", "glass.png", "glass.png");
setWoodLikeDiggingProperties(f->digging_properties, 0.15);