From 0ca530e25179e328df83d85a3af7ae9ce44ddfa4 Mon Sep 17 00:00:00 2001 From: fluxionary <25628292+fluxionary@users.noreply.github.com> Date: Wed, 24 Aug 2022 13:38:14 -0700 Subject: Fix texture_min_size --- src/nodedef.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/nodedef.cpp b/src/nodedef.cpp index 4022ac835..e9b322f1d 100644 --- a/src/nodedef.cpp +++ b/src/nodedef.cpp @@ -279,7 +279,7 @@ void TextureSettings::readSettings() bool smooth_lighting = g_settings->getBool("smooth_lighting"); enable_mesh_cache = g_settings->getBool("enable_mesh_cache"); enable_minimap = g_settings->getBool("enable_minimap"); - node_texture_size = std::min(g_settings->getU16("texture_min_size"), 1); + node_texture_size = std::max(g_settings->getU16("texture_min_size"), 1); std::string leaves_style_str = g_settings->get("leaves_style"); std::string world_aligned_mode_str = g_settings->get("world_aligned_mode"); std::string autoscale_mode_str = g_settings->get("autoscale_mode"); -- cgit v1.2.3