From 9df82839879be7340bd1e7f7e608072fa617aaa7 Mon Sep 17 00:00:00 2001 From: SpaceToad Date: Wed, 13 Aug 2014 22:56:26 +0200 Subject: [PATCH] added protection against exception raised --- common/buildcraft/transport/ItemFacade.java | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/common/buildcraft/transport/ItemFacade.java b/common/buildcraft/transport/ItemFacade.java index dc3a9a1a..0ec04add 100644 --- a/common/buildcraft/transport/ItemFacade.java +++ b/common/buildcraft/transport/ItemFacade.java @@ -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; }