You could do `if POSY_INT - 1 >= m_World->GetHeight`, but what if the mob is underneath glass?