Skip to content

Commit

Permalink
Make seared and scorched ladders connect (#5109)
Browse files Browse the repository at this point in the history
  • Loading branch information
KnightMiner committed Apr 27, 2023
1 parent 31c2430 commit 978e573
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ public BlockState getStateForPlacement(BlockPlaceContext context) {
BlockState state = context.getLevel().getBlockState(context.getClickedPos().below());
Direction direction = context.getHorizontalDirection().getOpposite();
return this.defaultBlockState()
.setValue(BOTTOM, !state.is(this) || state.getValue(FACING) != direction)
.setValue(BOTTOM, !(state.getBlock() instanceof SearedLadderBlock) || state.getValue(FACING) != direction)
.setValue(FACING, direction);
}

Expand Down

0 comments on commit 978e573

Please sign in to comment.