Fix GUI and update to correct translate function
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user