Fix GUI and update to correct translate function

This commit is contained in:
MTRNord
2016-11-19 23:50:38 +01:00
parent 3a4afc5035
commit 923e391361
3 changed files with 16 additions and 14 deletions
@@ -1,8 +1,8 @@
package de.skate702.craftingkeys.util;
//NEW_1_9: net.minecraft.util.text.translation.I18n;
import net.minecraft.util.StatCollector;
//NEW:1.9.4: import static net.minecraft.client.resources.I18n.format;
import static net.minecraft.client.resources.I18n.format;
public class LanguageLocalizer {
/**
@@ -13,6 +13,7 @@ public class LanguageLocalizer {
*/
public static String localize(String unloc) {
//NEW_1_9 return I18n.translateToLocal(unloc);
return StatCollector.translateToLocal(unloc);
//NEW_1_9.4: return I18n.format(unloc);
return format(unloc);
}
}