Don't assume the length of the pool

This commit is contained in:
Sollace 2018-12-08 18:10:53 +02:00
parent 62ebc1f351
commit dd46e8266a

View file

@ -28,7 +28,7 @@ class VillagerProfessionTextureCache implements ITextureSupplier<Integer> {
try {
Minecraft.getMinecraft().getResourceManager().getResource(texture);
} catch (IOException e) {
return pool[5];
return pool[pool.length - 1];
}
return texture;