aboutsummaryrefslogtreecommitdiff
path: root/src/client
diff options
context:
space:
mode:
authorWuzzy <wuzzy2@mail.ru>2021-03-29 22:27:46 +0000
committerGitHub <noreply@github.com>2021-03-30 00:27:46 +0200
commit6c9be39db0d8ae2759cc8d6d5c4b952d13cf4f64 (patch)
treebd67eecaf1024b56bca2097956de4f081d5c28f5 /src/client
parent3b78a223717c69918a5af422e21561f47ec74ce1 (diff)
downloadminetest-6c9be39db0d8ae2759cc8d6d5c4b952d13cf4f64.tar.gz
minetest-6c9be39db0d8ae2759cc8d6d5c4b952d13cf4f64.tar.bz2
minetest-6c9be39db0d8ae2759cc8d6d5c4b952d13cf4f64.zip
Fix wield image of plantlike_rooted (#11067)
Diffstat (limited to 'src/client')
-rw-r--r--src/client/wieldmesh.cpp10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/client/wieldmesh.cpp b/src/client/wieldmesh.cpp
index 387eb17c3..9806644df 100644
--- a/src/client/wieldmesh.cpp
+++ b/src/client/wieldmesh.cpp
@@ -395,7 +395,6 @@ void WieldMeshSceneNode::setItem(const ItemStack &item, Client *client, bool che
case NDT_TORCHLIKE:
case NDT_RAILLIKE:
case NDT_PLANTLIKE:
- case NDT_PLANTLIKE_ROOTED:
case NDT_FLOWINGLIQUID: {
v3f wscale = def.wield_scale;
if (f.drawtype == NDT_FLOWINGLIQUID)
@@ -411,6 +410,15 @@ void WieldMeshSceneNode::setItem(const ItemStack &item, Client *client, bool che
m_colors.emplace_back(l1.has_color, l1.color);
break;
}
+ case NDT_PLANTLIKE_ROOTED: {
+ setExtruded(tsrc->getTextureName(f.special_tiles[0].layers[0].texture_id),
+ "", def.wield_scale, tsrc,
+ f.special_tiles[0].layers[0].animation_frame_count);
+ // Add color
+ const TileLayer &l0 = f.special_tiles[0].layers[0];
+ m_colors.emplace_back(l0.has_color, l0.color);
+ break;
+ }
case NDT_NORMAL:
case NDT_ALLFACES:
case NDT_LIQUID: