From 811ac5ac3ae6de6ee152f724aaf392ac73c3ed40 Mon Sep 17 00:00:00 2001 From: Perttu Ahola Date: Sat, 19 Nov 2011 19:06:19 +0200 Subject: [PATCH] Mess up with node definitions to make CONTENT_IGNORE be correctly interpreted when creating meshes --- src/nodedef.cpp | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/src/nodedef.cpp b/src/nodedef.cpp index de724659b..0e48c8c07 100644 --- a/src/nodedef.cpp +++ b/src/nodedef.cpp @@ -347,13 +347,13 @@ public: ContentFeatures f; f.name = "ignore"; f.drawtype = NDT_AIRLIKE; - f.param_type = CPT_LIGHT; + /*f.param_type = CPT_LIGHT; f.light_propagates = true; - f.sunlight_propagates = true; + f.sunlight_propagates = true;*/ f.walkable = false; f.pointable = false; f.diggable = false; - f.buildable_to = true; + f.buildable_to = false; f.air_equivalent = true; set(CONTENT_IGNORE, f); } @@ -424,6 +424,15 @@ public: infostream<<"registerNode: registering content id \""<deSerialize(tmp_is, gamedef); if(f->name != "") -- 2.25.1