Skip to content

Instantly share code, notes, and snippets.

@sofar sofar/wth?
Created Dec 15, 2015

Embed
What would you like to do?
diff --git a/src/content_mapblock.cpp b/src/content_mapblock.cpp
index 01a06b6..c237f15 100644
--- a/src/content_mapblock.cpp
+++ b/src/content_mapblock.cpp
@@ -1316,7 +1316,7 @@ void mapblock_mesh_generate_special(MeshMakeData *data,
p2.X++;
MapNode n2 = data->m_vmanip.getNodeNoEx(blockpos_nodes + p2);
const ContentFeatures *f2 = &nodedef->get(n2);
- if(f2->drawtype == NDT_FENCELIKE)
+ if(f2->drawtype == NDT_FENCELIKE || f2->drawtype == NDT_NORMAL)
{
aabb3f bar(-bar_len+BS/2,-bar_rad+BS/4,-bar_rad,
bar_len+BS/2,bar_rad+BS/4,bar_rad);
@@ -1342,7 +1342,7 @@ void mapblock_mesh_generate_special(MeshMakeData *data,
p2.Z++;
n2 = data->m_vmanip.getNodeNoEx(blockpos_nodes + p2);
f2 = &nodedef->get(n2);
- if(f2->drawtype == NDT_FENCELIKE)
+ if(f2->drawtype == NDT_FENCELIKE || f2->drawtype == NDT_NORMAL)
{
aabb3f bar(-bar_rad,-bar_rad+BS/4,-bar_len+BS/2,
bar_rad,bar_rad+BS/4,bar_len+BS/2);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.