ModelCreator
ModelCreator copied to clipboard
Textures with numbers stripped when loaded
https://github.com/MrCrayfish/ModelCreator/blob/907843fa42f3f21a8b94291f7eb445c71d1aae43/src/com/mrcrayfish/modelcreator/texture/TextureManager.java#L105
Is there ANY possible reason for this to happen? I can't have myBlock_1.png and myBlock_2.png because it strips off the 1 and 2 before adding the texture, which makes it impossible to have both loaded.
Upon further inspection I found that you're saving the texture in the zipped .model file with I guess the hash appended to the file name like "Luggage_a.png3996013750436201211" (but only sometimes?). why not instead of doing a replace, do a substring of texture.getName().substring(0, texture.getName().indexOf(".png")) because you're only loading png files and saving them with the .png extension