From 0f9c78c3ebf920fac65030e66367b9940055075f Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Mon, 23 May 2022 20:50:10 +0000 Subject: Fix no_texture.png for unknown nodes with ID < 125 (#12329) --- src/nodedef.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/nodedef.h b/src/nodedef.h index f90caff8a..8c817179d 100644 --- a/src/nodedef.h +++ b/src/nodedef.h @@ -539,7 +539,7 @@ public: */ inline const ContentFeatures& get(content_t c) const { return - c < m_content_features.size() ? + (c < m_content_features.size() && !m_content_features[c].name.empty()) ? m_content_features[c] : m_content_features[CONTENT_UNKNOWN]; } -- cgit v1.2.3