From 6aa3d56256202df70ef5fa65c53ff38a8abb1dd2 Mon Sep 17 00:00:00 2001 From: CrazyPants Date: Mon, 18 Aug 2014 19:53:35 +0800 Subject: [PATCH] #863 Crash with Configure IO button and Carpenter's Blocks --- .../java/crazypants/enderio/gui/IoConfigRenderer.java | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/main/java/crazypants/enderio/gui/IoConfigRenderer.java b/src/main/java/crazypants/enderio/gui/IoConfigRenderer.java index ab537391..5e557df1 100644 --- a/src/main/java/crazypants/enderio/gui/IoConfigRenderer.java +++ b/src/main/java/crazypants/enderio/gui/IoConfigRenderer.java @@ -125,7 +125,7 @@ public class IoConfigRenderer { } world = mc.thePlayer.worldObj; - RB.blockAccess = new InnerBA(); + RB.blockAccess = new InnerBA(); } public void init() { @@ -400,7 +400,12 @@ public class IoConfigRenderer { RB.renderAllFaces = true; RB.setRenderAllFaces(true); RB.setRenderBounds(0, 0, 0, 1, 1, 1); - RB.renderBlockByRenderType(block, bc.x, bc.y, bc.z); + try { + RB.renderBlockByRenderType(block, bc.x, bc.y, bc.z); + } catch (Exception e) { + //Ignore, things might blow up in rendering due to the modified block access + //but this is about as good as we can do + } } } }