added protection against exception raised

This commit is contained in:
SpaceToad 2014-08-13 22:56:26 +02:00
parent 7351eb9a5f
commit 9df8283987

View file

@ -195,11 +195,16 @@ 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;
}