public void Update() { if (m_nView.IsValid()) { bool haveSupport = m_nView.GetZDO().GetFloat("support") >= m_wearNTear.GetMinSupport(); if (haveSupport != hasSupport) { hasSupport = haveSupport; UpdateTextures(); } } }