-
-
Save sofar/c04e2932967cb9edb768 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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