summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfluxionary <25628292+fluxionary@users.noreply.github.com>2022-08-24 13:38:14 -0700
committersfan5 <sfan5@live.de>2022-09-14 13:48:06 +0200
commit0ca530e25179e328df83d85a3af7ae9ce44ddfa4 (patch)
tree89ec3d79ffc248e4e7d74a8794e5b91d64291c74
parent57b4d46dbc84d008db48675b5ff07ce4fd8fb058 (diff)
downloadminetest-0ca530e25179e328df83d85a3af7ae9ce44ddfa4.tar.gz
minetest-0ca530e25179e328df83d85a3af7ae9ce44ddfa4.tar.bz2
minetest-0ca530e25179e328df83d85a3af7ae9ce44ddfa4.zip
Fix texture_min_size
-rw-r--r--src/nodedef.cpp2
1 files changed, 1 insertions, 1 deletions
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<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");