Skip to content

Commit

Permalink
fixed crash with palm leaves
Browse files Browse the repository at this point in the history
  • Loading branch information
supermassimo committed Jan 21, 2025
1 parent 8edcad3 commit c09cf9f
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,7 @@ public static BlockState getDirectionState(BlockState state, CoordUtils.Surround
if (state == null) {
return null;
}
if (!state.hasProperty(DIRECTION)) return state;
return state.setValue(DIRECTION, surround == null ? 0 : surround.ordinal() + 1);
}

Expand Down

0 comments on commit c09cf9f

Please sign in to comment.