fixed npe and directly open server gui on client to avoid issues when quickly changing equipped item after trying to open it; changing up some code, might help with an issue reported in irc