}
}
public static void unloadTexture(ResourceLocation resource) {
TextureManager textureManager = Minecraft.getMinecraft().getTextureManager();
TextureObject texture = textureManager.getTexture(resource);
if (texture != null && !(texture instanceof TextureMap) && !(texture instanceof DynamicTexture)) {
if (texture instanceof AbstractTexture) {
((AbstractTexture)texture).unloadGLTexture();
}