Fix #1022
This commit is contained in:
parent
bf97331139
commit
ed06bb8850
1 changed files with 3 additions and 0 deletions
|
@ -144,6 +144,9 @@ public class GT_Block_Machines extends GT_Generic_Block implements IDebugableBlo
|
||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
public boolean canConnectRedstone(IBlockState state, IBlockAccess world, BlockPos pos, EnumFacing side) {
|
public boolean canConnectRedstone(IBlockState state, IBlockAccess world, BlockPos pos, EnumFacing side) {
|
||||||
|
if (side == null ) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
IGregTechTileEntity gregTechTileEntity = getGregTile(world, pos);
|
IGregTechTileEntity gregTechTileEntity = getGregTile(world, pos);
|
||||||
return gregTechTileEntity != null && gregTechTileEntity.canOutputRedstone((byte) side.getOpposite().getIndex());
|
return gregTechTileEntity != null && gregTechTileEntity.canOutputRedstone((byte) side.getOpposite().getIndex());
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue