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

@ -193,13 +193,18 @@ public class ItemFacade extends ItemBuildCraft {
} }
} }
} }
private static boolean hasNoNullIcons(Block block, int meta) { private static boolean hasNoNullIcons(Block block, int meta) {
for (int i = 0; i < 6; i++) { try {
if (block.getIcon(i, meta) == null) { for (int i = 0; i < 6; i++) {
return false; if (block.getIcon(i, meta) == null) {
} return false;
} }
}
} catch (Throwable t) {
return false;
}
return true; return true;
} }