From 2d13cde9c5e43befe754eaeb9c18115c350d5ce0 Mon Sep 17 00:00:00 2001 From: Lizbeth Rika Date: Fri, 8 Aug 2014 15:59:55 +0100 Subject: [PATCH] Dolla dolla bills y'all. --- .../botania/common/core/version/ThreadDownloadMod.java | 5 ++++- resources/assets/botania/lang/en_US.lang | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/MODSRC/vazkii/botania/common/core/version/ThreadDownloadMod.java b/MODSRC/vazkii/botania/common/core/version/ThreadDownloadMod.java index 1659d6e81..dd4857b22 100644 --- a/MODSRC/vazkii/botania/common/core/version/ThreadDownloadMod.java +++ b/MODSRC/vazkii/botania/common/core/version/ThreadDownloadMod.java @@ -22,6 +22,8 @@ import net.minecraft.client.Minecraft; import net.minecraft.util.ChatComponentTranslation; import net.minecraft.util.ChatStyle; import net.minecraft.util.EnumChatFormatting; +import net.minecraft.util.IChatComponent; +import net.minecraft.util.StatCollector; public class ThreadDownloadMod extends Thread { @@ -45,8 +47,9 @@ public class ThreadDownloadMod extends Thread { @Override public void run() { try { + IChatComponent component = IChatComponent.Serializer.func_150699_a(String.format(StatCollector.translateToLocal("botania.versioning.startingDownload"), fileName)); if(Minecraft.getMinecraft().thePlayer != null) - Minecraft.getMinecraft().thePlayer.addChatMessage(new ChatComponentTranslation("botania.versioning.startingDownload", fileName).setChatStyle(new ChatStyle().setColor(EnumChatFormatting.GOLD))); + Minecraft.getMinecraft().thePlayer.addChatMessage(component); VersionChecker.startedDownload = true; diff --git a/resources/assets/botania/lang/en_US.lang b/resources/assets/botania/lang/en_US.lang index 209afc25c..6859d81ca 100644 --- a/resources/assets/botania/lang/en_US.lang +++ b/resources/assets/botania/lang/en_US.lang @@ -177,7 +177,7 @@ botania.versioning.flavour34=Back on the Botania update treadmill. No fun requir botania.versioning.flavour35=Would you become a Magical Girl for a Botania Update? botania.versioning.outdated=You are running Botania build %s, the latest is build %s. botania.versioning.updateMessage=["Click for... [",{"text":"Download","color":"green","hoverEvent":{"action":"show_text","value":{"text":"Click this to automatically download the latest version","color":"green"}},"clickEvent":{"action":"run_command","value":"/botania-download-latest %version%"}},"] [",{"text":"Website","color":"green","hoverEvent":{"action":"show_text","value":{"text":"Click this to go to the mod's website","color":"green"}},"clickEvent":{"action":"open_url","value":"http://vazkii.us/mod/Botania/downloads.php"}},"] [",{"text":"Changelog","color":"green","hoverEvent":{"action":"show_text","value":{"text":"Click this to go to the version's Changelog","color":"green"}},"clickEvent":{"action":"open_url","value":"http://vazkii.us/mod/Botania/changelog.php#%version%"}},"]"] -botania.versioning.startingDownload=Starting download of %s. Please do not remove your hard disk. +botania.versioning.startingDownload=[{"text":"Starting download of %s. Please do not remove your hard disk. Enjoying ","color":"aqua"},{"text":"Botania","color":"green"},{"text":"? Consider supporting ","color":"aqua"},{"text":"Vazkii","color":"light_purple"},{"text":" on [","color":"aqua"},{"text":"Patreon","color":"gold","hoverEvent":{"action":"show_text","value":{"text":"Click this to go to Vazkii's Patreon","color":"light_purple"}},"clickEvent":{"action":"open_url","value":"http://www.patreon.com/Vazkii"}},{"text":"]!","color":"aqua"}] botania.versioning.doneDownloading=Finished downloading %s. Delete your old Botania .jar and reload your game to update. botania.versioning.downloadedAlready=You already downloaded the latest version. Close your game, delete the old version from your mods folder and load it again to update! botania.versioning.downloadingAlready=The update is already downloading, give it some time, will you?