Optimize some code. Attempt to fix #3

Optimize some code. Attempt to fix #3
Seemed to no longer give the issues it did with these changes. (Join
dungeon while in group -> leave dungeon (ChangeWorld) -> leave instance
group and end up back in normal group with textures funny (usually with
flat texture selected)