We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3c0d309 commit 0496149Copy full SHA for 0496149
src/client/content_cao.cpp
@@ -829,7 +829,8 @@ void GenericCAO::setNodeLight(u8 light)
829
if (m_prop.visual == "wielditem" || m_prop.visual == "item") {
830
// Since these types of visuals are using their own shader
831
// they should be handled separately
832
- m_wield_meshnode->setColor(color);
+ if (m_wield_meshnode)
833
+ m_wield_meshnode->setColor(color);
834
} else if (m_enable_shaders) {
835
scene::ISceneNode *node = getSceneNode();
836
0 commit comments