Skip to content

Commit 54fb0cc

Browse files
committed
Try to avoid crashing when rendering TE in machine view
If it won't tick, then don't tick it. This should fix #309 and some other mod interaction crashes.
1 parent 79d1c28 commit 54fb0cc

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/main/java/org/dave/compactmachines3/gui/machine/GuiMachine.java

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -280,8 +280,11 @@ private void renderTileEntities(TileEntityRendererDispatcher renderer, List<Bloc
280280
te.setWorld(GuiMachineData.proxyWorld);
281281
te.setPos(pos);
282282

283-
if(te instanceof ITickable) {
284-
((ITickable) te).update();
283+
if (te instanceof ITickable) {
284+
try {
285+
((ITickable) te).update();
286+
} catch (Exception e) {
287+
}
285288
}
286289

287290
GlStateManager.pushMatrix();

0 commit comments

Comments
 (0)