aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/nodedef.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/nodedef.cpp b/src/nodedef.cpp
index 558acafd6..ce3e378a0 100644
--- a/src/nodedef.cpp
+++ b/src/nodedef.cpp
@@ -786,7 +786,10 @@ void ContentFeatures::updateTextures(ITextureSource *tsrc, IShaderSource *shdsrc
tiledef_special[j].backface_culling, material_type);
}
- palette = tsrc->getPalette(palette_name);
+ if (param_type_2 == CPT2_COLOR ||
+ param_type_2 == CPT2_COLORED_FACEDIR ||
+ param_type_2 == CPT2_COLORED_WALLMOUNTED)
+ palette = tsrc->getPalette(palette_name);
if ((drawtype == NDT_MESH) && (mesh != "")) {
// Meshnode drawtype