Configuration.write();
Minecraft game = SpoutClient.getHandle();
TexturePackChangeHandler.earlyInitialize("com.prupe.mcpatcher.mob.CTMUtils", "reset");
TexturePackChangeHandler.beforeChange1(true);
game.refreshResources();
TexturePackChangeHandler.afterChange1(true);
if (Minecraft.getMinecraft().theWorld != null) {
Minecraft.getMinecraft().renderGlobal.updateAllRenderers();
}
}