From e3e7dd6fea7cd10490f08b74f2d4b911765233e8 Mon Sep 17 00:00:00 2001 From: ata4 Date: Thu, 11 Aug 2016 15:26:50 +0200 Subject: [PATCH] Port to 1.9.4 --- build.gradle | 4 ++-- .../java/info/ata4/minecraft/mineshot/MineshotCore.java | 2 +- .../info/ata4/minecraft/mineshot/client/util/ChatUtils.java | 6 +++--- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/build.gradle b/build.gradle index 05c0dae..27d1e89 100644 --- a/build.gradle +++ b/build.gradle @@ -36,7 +36,7 @@ def getGitTag = { -> } minecraft { - version = "1.9-12.16.1.1887" + version = "1.9.4-12.17.0.1922-1.9.4" runDir = "minecraft" // the mappings can be changed at any time, and must be in the following format. @@ -44,7 +44,7 @@ minecraft { // stable_# stables are built at the discretion of the MCP team. // Use non-default mappings at your own risk. they may not allways work. // simply re-run your setup task after changing the mappings to update your workspace. - mappings = "stable_20" + mappings = "snapshot_20160518" } version = getGitTag() diff --git a/src/main/java/info/ata4/minecraft/mineshot/MineshotCore.java b/src/main/java/info/ata4/minecraft/mineshot/MineshotCore.java index c8fd82f..1faf592 100644 --- a/src/main/java/info/ata4/minecraft/mineshot/MineshotCore.java +++ b/src/main/java/info/ata4/minecraft/mineshot/MineshotCore.java @@ -18,7 +18,7 @@ * * @author Nico Bergemann */ -@MCVersion(value = "1.9") +@MCVersion(value = "1.9.4") public class MineshotCore implements IFMLLoadingPlugin { @Override diff --git a/src/main/java/info/ata4/minecraft/mineshot/client/util/ChatUtils.java b/src/main/java/info/ata4/minecraft/mineshot/client/util/ChatUtils.java index 4d95267..2b171da 100644 --- a/src/main/java/info/ata4/minecraft/mineshot/client/util/ChatUtils.java +++ b/src/main/java/info/ata4/minecraft/mineshot/client/util/ChatUtils.java @@ -33,7 +33,7 @@ public static void print(String msg, TextFormatting format, Object... args) { GuiNewChat chat = MC.ingameGUI.getChatGUI(); TextComponentTranslation ret = new TextComponentTranslation(msg, args); - ret.getChatStyle().setColor(format); + ret.getStyle().setColor(format); chat.printChatMessage(ret); } @@ -52,8 +52,8 @@ public static void printFileLink(String msg, File file) { path = file.getAbsolutePath(); } - text.getChatStyle().setChatClickEvent(new ClickEvent(OPEN_FILE, path)); - text.getChatStyle().setUnderlined(true); + text.getStyle().setClickEvent(new ClickEvent(OPEN_FILE, path)); + text.getStyle().setUnderlined(true); print(msg, text); }