Skip to content

Commit

Permalink
Okay yea its probably more useful without this
Browse files Browse the repository at this point in the history
  • Loading branch information
enjarai committed Jul 13, 2024
1 parent 83920d7 commit 21b542e
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/main/java/dev/enjarai/trickster/block/SpellCircleBlock.java
Original file line number Diff line number Diff line change
Expand Up @@ -53,14 +53,14 @@ protected VoxelShape getOutlineShape(BlockState state, BlockView world, BlockPos
return SHAPES[state.get(FACING).getId()];
}

@Override
protected BlockState getStateForNeighborUpdate(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos) {
if (world.getBlockState(pos.offset(state.get(FACING).getOpposite())).isAir()) {
return Blocks.AIR.getDefaultState();
}

return super.getStateForNeighborUpdate(state, direction, neighborState, world, pos, neighborPos);
}
// @Override
// protected BlockState getStateForNeighborUpdate(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos) {
// if (world.getBlockState(pos.offset(state.get(FACING).getOpposite())).isAir()) {
// return Blocks.AIR.getDefaultState();
// }
//
// return super.getStateForNeighborUpdate(state, direction, neighborState, world, pos, neighborPos);
// }

@Nullable
@Override
Expand Down

0 comments on commit 21b542e

Please sign in to comment.