From 6f641df8a52ccb84452a289416527e3d1a36621a Mon Sep 17 00:00:00 2001 From: =?utf8?q?D=C3=A1niel=20Juh=C3=A1sz?= Date: Thu, 13 Apr 2017 01:24:00 +0200 Subject: [PATCH] Only use palette if param_type2 is correct --- src/nodedef.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 -- 2.25.1