Always load MISSIN_TEXTURE texture

This commit is contained in:
Lukas Rieger (Blue) 2022-10-13 20:33:03 +02:00
parent 06c97b74c1
commit 5a109b42c6
No known key found for this signature in database
GPG Key ID: 2D09EC5ED2687FF2

View File

@ -331,6 +331,7 @@ private void loadTextures(Path root) throws IOException {
// collect all used textures
Set<ResourcePath<Texture>> usedTextures = new HashSet<>();
usedTextures.add(MISSING_TEXTURE);
for (BlockModel model : blockModels.values()) {
for (TextureVariable textureVariable : model.getTextures().values()) {
if (textureVariable.isReference()) continue;