aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorfluxionary <25628292+fluxionary@users.noreply.github.com>2022-08-24 13:38:14 -0700
committerGitHub <noreply@github.com>2022-08-24 22:38:14 +0200
commit0ab9bf926d471b0842107905b41d8c1e4b34b17e (patch)
tree1f9e11a0489a4f99d1348d1d550d38b9a2556746 /src
parent2d10fa786792a27adb4097abe8c92f36cf47e6ce (diff)
downloadminetest-0ab9bf926d471b0842107905b41d8c1e4b34b17e.tar.xz
Fix texture_min_size
Diffstat (limited to 'src')
-rw-r--r--src/nodedef.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nodedef.cpp b/src/nodedef.cpp
index 733dbf07a..d1eb12f3e 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<u16>(g_settings->getU16("texture_min_size"), 1);
+ node_texture_size = std::max<u16>(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");