From: Wuzzy Date: Mon, 23 May 2022 20:50:10 +0000 (+0000) Subject: Fix no_texture.png for unknown nodes with ID < 125 (#12329) X-Git-Url: https://git.lizzy.rs/?a=commitdiff_plain;h=0f9c78c3ebf920fac65030e66367b9940055075f;p=dragonfireclient.git Fix no_texture.png for unknown nodes with ID < 125 (#12329) --- 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 @@ class NodeDefManager { */ 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]; }