Advertisement
Guest User

Untitled

a guest
Apr 19th, 2018
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.49 KB | None | 0 0
  1. public void convertTextureIds(short[] textureIds, int[] texa, int[] texb, int[] texc, byte[] texture_coordinates) {
  2. int set = 0;
  3. int set2 = 0;
  4. int max = Texture.textureAmount;
  5. if(textureIds != null) {
  6. anIntArray1643 = new int[anInt1630];
  7. anIntArray1644 = new int[anInt1630];
  8. anIntArray1645 = new int[anInt1630];
  9. for(int i = 0; i < anInt1630; i++) {
  10.  
  11. if(textureIds[i] == -1 && anIntArray1637[i] == 2) {
  12. anIntArray1640[i] = 65535;
  13. anIntArray1637[i] = 0;
  14. }
  15.  
  16. if(textureIds[i] >= max || textureIds[i] < 0 || textureIds[i] == 39) {
  17. anIntArray1637[i] = 0;
  18. continue;
  19. }
  20.  
  21. anIntArray1637[i] = 2 + set2;
  22. set2 += 4;
  23. int a = anIntArray1631[i];
  24. int b = anIntArray1632[i];
  25. int c = anIntArray1633[i];
  26. anIntArray1640[i] = textureIds[i];
  27. int texture_type = -1;
  28.  
  29. if(texture_coordinates != null) {
  30. texture_type = texture_coordinates[i] & 0xff;
  31. if(texture_type != 0xff) {
  32. if(texa[texture_type] >= anIntArray1669.length || texb[texture_type] >= anIntArray1668.length || texc[texture_type] >= anIntArray1670.length) {
  33. texture_type = -1;
  34. }
  35. }
  36. }
  37.  
  38. if(texture_type == 0xff) {
  39. texture_type = -1;
  40. }
  41.  
  42. anIntArray1643[set] = texture_type == -1 ? a : texa[texture_type];
  43. anIntArray1644[set] = texture_type == -1 ? b : texb[texture_type];
  44. anIntArray1645[set++] = texture_type == -1 ? c : texc[texture_type];
  45. }
  46. anInt1642 = set;
  47. }
  48. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement