Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @Override
- public void neighborChanged(IBlockState state, World worldIn, BlockPos pos,
- Block blockIn, BlockPos p_189540_5_) {
- IBlockState neighbor = worldIn.getBlockState(p_189540_5_);
- if (neighbor.getBlock() instanceof BlockBlinds && neighbor.getValue(FACING) == state.getValue(FACING)) {
- if (neighbor.getValue(OPEN) != state.getValue(OPEN)) {
- worldIn.setBlockState(pos, state.withProperty(OPEN, neighbor.getValue(OPEN)));
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment