mirror of
https://github.com/GTNewHorizons/EnderIO.git
synced 2026-11-27 15:33:06 +00:00
Add a teleport active sound, fix Lang
This commit is contained in:
1 parent
24549156c0
commit
bf0bf98c21
6 files changed
+60
-8
No files matched your search
@@ -1,5 +1,7 @@
|
||||
package crazypants.util;
|
||||
|
||||
import java.util.IllegalFormatException;
|
||||
|
||||
import net.minecraft.util.StatCollector;
|
||||
|
||||
public class Lang {
|
||||
@@ -14,7 +16,12 @@ public class Lang {
|
||||
if(appendEIO) {
|
||||
s = prefix + s;
|
||||
}
|
||||
return String.format(StatCollector.translateToLocal(s), (Object[]) args);
|
||||
String ret = StatCollector.translateToLocal(s);
|
||||
try {
|
||||
return String.format(ret, (Object[]) args);
|
||||
} catch (IllegalFormatException e) {
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
public static String[] localizeList(String string) {
|
||||
|
||||
Reference in new issue
Block a user