GenuineSounds

Pretty dumb

Jun 11th, 2012
190
0
Never
1
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.64 KB | None | 0 0
  1. private void generateTranslationDefaults() {
  2.     File dir = new File(ModLoader.getMinecraftInstance().getMinecraftDir(), "/resources/newsound/");
  3.     for (String fileName : getFinalFile(dir)) {
  4.         if (fileName.startsWith("."))
  5.             fileName = fileName.replaceFirst(".", "");
  6.         fileName = fileName.substring(fileName.indexOf("newsound") + 9, fileName.indexOf(".", fileName.indexOf("newsound") + 9));
  7.         fileName = fileName.replace("/", ".");
  8.         fileName = fileName.replace("\\", ".");
  9.         fileName = fileName.replaceAll("[0-9]", "");
  10.         if (!fileName.isEmpty())
  11.         // add yo shizzle
  12.             GenuineCaptionsContainer.instance.addTranslation(fileName, "default");
  13.     }
  14. }
Advertisement
Comments
  • User was banned
Add Comment
Please, Sign In to add comment