diff options
Diffstat (limited to 'src/itemdef.cpp')
-rw-r--r-- | src/itemdef.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/itemdef.cpp b/src/itemdef.cpp index 10e1afe2d..f976c3eb7 100644 --- a/src/itemdef.cpp +++ b/src/itemdef.cpp @@ -400,7 +400,10 @@ public: g_settings->setBool("enable_shaders",false); } MeshMakeData mesh_make_data(gamedef); - MapNode mesh_make_node(id, param1, 0); + u8 param2 = 0; + if (f.param_type_2 == CPT2_WALLMOUNTED) + param2 = 1; + MapNode mesh_make_node(id, param1, param2); mesh_make_data.fillSingleNode(&mesh_make_node); MapBlockMesh mapblock_mesh(&mesh_make_data, v3s16(0, 0, 0)); scene::IMesh *node_mesh = mapblock_mesh.getMesh(); |