mirror of
https://github.com/Ellpeck/ActuallyAdditions.git
synced 2024-11-22 15:18:34 +01:00
Remove formatting codes of the text output
This commit is contained in:
parent
16d9b95b5a
commit
9e50818fca
1 changed files with 2 additions and 1 deletions
|
@ -37,6 +37,7 @@ import net.minecraft.client.resources.IResourceManager;
|
||||||
import net.minecraft.client.resources.IResourceManagerReloadListener;
|
import net.minecraft.client.resources.IResourceManagerReloadListener;
|
||||||
import net.minecraft.item.Item;
|
import net.minecraft.item.Item;
|
||||||
import net.minecraft.item.ItemStack;
|
import net.minecraft.item.ItemStack;
|
||||||
|
import net.minecraft.util.text.TextFormatting;
|
||||||
import net.minecraftforge.client.model.ModelLoader;
|
import net.minecraftforge.client.model.ModelLoader;
|
||||||
import net.minecraftforge.fluids.Fluid;
|
import net.minecraftforge.fluids.Fluid;
|
||||||
import net.minecraftforge.fml.client.registry.ClientRegistry;
|
import net.minecraftforge.fml.client.registry.ClientRegistry;
|
||||||
|
@ -94,7 +95,7 @@ public class ClientProxy implements IProxy{
|
||||||
try{
|
try{
|
||||||
file.createNewFile();
|
file.createNewFile();
|
||||||
BufferedWriter writer = new BufferedWriter(new FileWriter(file));
|
BufferedWriter writer = new BufferedWriter(new FileWriter(file));
|
||||||
writer.write(bookletText);
|
writer.write(TextFormatting.getTextWithoutFormattingCodes(bookletText));
|
||||||
writer.close();
|
writer.close();
|
||||||
ModUtil.LOGGER.info("Wrote booklet text to file!");
|
ModUtil.LOGGER.info("Wrote booklet text to file!");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue