mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-13 08:35:20 +02:00
Only use palette if param_type2 is correct
This commit is contained in:
@@ -786,6 +786,9 @@ void ContentFeatures::updateTextures(ITextureSource *tsrc, IShaderSource *shdsrc
|
||||
tiledef_special[j].backface_culling, material_type);
|
||||
}
|
||||
|
||||
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 != "")) {
|
||||
|
Reference in New Issue
Block a user