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 fromPos) {
- IBlockState neighbor = worldIn.getBlockState(fromPos);
- 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