Fix crashes with connected texture blocks and make switching of modes more modular and efficient.
Added mod menu config capabilities.