Fixed the Lexica Botania's notes accepting localization keys and localizing them.

This commit is contained in:
Vasco Lavos committed 2016-09-21 18:43:32 +01:00
1 parent caaaf45de3
commit e0e311a55b
1 file changed
+2 -1
@@ -36,6 +36,7 @@ import net.minecraft.client.gui.GuiScreen;
import net.minecraft.client.gui.ScaledResolution;
import net.minecraft.client.renderer.GlStateManager;
import net.minecraft.client.resources.I18n;
import net.minecraft.entity.player.EntityPlayer.EnumChatVisibility;
import net.minecraft.item.ItemStack;
import net.minecraft.nbt.NBTTagCompound;
import net.minecraft.util.ChatAllowedCharacters;
@@ -320,7 +321,7 @@ public class GuiLexicon extends GuiScreen {
boolean unicode = fontRendererObj.getUnicodeFlag();
fontRendererObj.setUnicodeFlag(true);
PageText.renderText(x + 5, y - 3, 92, 120, 0, true, 0, noteDisplay);
PageText.renderText(x + 5, y - 3, 92, 120, 0, true, 0, TextFormatting.RESET + noteDisplay);
fontRendererObj.setUnicodeFlag(unicode);
}