From ed06bb88503f91b7bf37e0e28636c200a566c769 Mon Sep 17 00:00:00 2001 From: Exidex Date: Sat, 15 Apr 2017 21:30:50 +0300 Subject: [PATCH] Fix #1022 --- src/main/java/gregtech/common/blocks/GT_Block_Machines.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main/java/gregtech/common/blocks/GT_Block_Machines.java b/src/main/java/gregtech/common/blocks/GT_Block_Machines.java index 6eeed06f..37abb6c7 100644 --- a/src/main/java/gregtech/common/blocks/GT_Block_Machines.java +++ b/src/main/java/gregtech/common/blocks/GT_Block_Machines.java @@ -144,6 +144,9 @@ public class GT_Block_Machines extends GT_Generic_Block implements IDebugableBlo */ @Override public boolean canConnectRedstone(IBlockState state, IBlockAccess world, BlockPos pos, EnumFacing side) { + if (side == null ) { + return false; + } IGregTechTileEntity gregTechTileEntity = getGregTile(world, pos); return gregTechTileEntity != null && gregTechTileEntity.canOutputRedstone((byte) side.getOpposite().getIndex()); }