Remove formatting codes of the text output

This commit is contained in:
Ellpeck 2016-05-26 22:53:11 +02:00
parent 16d9b95b5a
commit 9e50818fca

View file

@ -37,6 +37,7 @@ import net.minecraft.client.resources.IResourceManager;
import net.minecraft.client.resources.IResourceManagerReloadListener;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import net.minecraft.util.text.TextFormatting;
import net.minecraftforge.client.model.ModelLoader;
import net.minecraftforge.fluids.Fluid;
import net.minecraftforge.fml.client.registry.ClientRegistry;
@ -94,7 +95,7 @@ public class ClientProxy implements IProxy{
try{
file.createNewFile();
BufferedWriter writer = new BufferedWriter(new FileWriter(file));
writer.write(bookletText);
writer.write(TextFormatting.getTextWithoutFormattingCodes(bookletText));
writer.close();
ModUtil.LOGGER.info("Wrote booklet text to file!");
}