added protection against exception raised
This commit is contained in:
parent
7351eb9a5f
commit
9df8283987
1 changed files with 11 additions and 6 deletions
|
@ -193,13 +193,18 @@ public class ItemFacade extends ItemBuildCraft {
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
private static boolean hasNoNullIcons(Block block, int meta) {
|
||||
for (int i = 0; i < 6; i++) {
|
||||
if (block.getIcon(i, meta) == null) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
try {
|
||||
for (int i = 0; i < 6; i++) {
|
||||
if (block.getIcon(i, meta) == null) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
} catch (Throwable t) {
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue