Fixed Texturepack null bug.