mirror of
https://github.com/MineLittlePony/MineLittlePony.git
synced 2024-11-25 22:07:59 +01:00
Don't assume the length of the pool
This commit is contained in:
parent
62ebc1f351
commit
dd46e8266a
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue