Fixed the derp in connected textures.

Somehow, in the 1.7 update someone screwed up some if statements, I just went in and fixed it.