Closed shartte closed 8 years ago
Well, texture stuff was PRed by algo into forge and we forgot about it. UVLLoader will be r҉e͡wri̴tt͝én o̤̺͕͖̮͑͂n̐̔̈́̍̚҉̩͇c̙̰̩̠̮̭̱ͯͧ́e̮̘̞̠̞͇̝͋ f̻͌̿ͮͫ̔o̶ͤͤͣ͑ͭ̏ͩ͞҉̤r̢͒̔͜҉͔̜̞̟g̰̙̫̯̲͇̟ͥͩ̂̄ͧ̀ͅę̛̮͍͎̟͋̽̾̍̀́͆͞ m̵̴̧͑ͣ̂͋ͤ̿̓͋̈́ͭ͑͛ͮ͆ͥ̚͠҉̘͉̗̟̪̮̜̼̖̺̙͍̤̜̺̼̺.̵͚̯̖̥̳̱̟̜̝̰͒̄̒̎ͣ͂̏ͮ͑̀̄͒̆͗͞͞.̶̸̣̪̬̪̗̀͌̄͂͌͂̓͌̈̇͆͌͋͗̏͒̌ͧ̀́̕.̶̲̠͔͚͎̗̬͚̤̼͍̪͕̲͂̀͆̑ͭͤͭͭͥͬͨ͐̈̏ͥ̏ͬ̽͢͞
Fixes a crash bug when trying to break a block because the damage texture couldn't be generated. This was caused by CachingRotatingBakedModel not setting the texture on the output quads.
Fixes another crash bug when trying to load an UVL model with tint indices. This was caused by the vertex lighter in UVL model loader trying to access the non-existing block state to get the color multiplier. Fixed by emulating tint -1 during this lighting step.
Both classes also failed to propagate the tint-index to the resulting quads, so tint didn't work ingame anymore.