Skip to content

Commit c09cf9f

Browse files
committed
fixed crash with palm leaves
1 parent 8edcad3 commit c09cf9f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/main/java/com/ferreusveritas/dynamictrees/block/leaves/PalmLeavesProperties.java

+1
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,7 @@ public static BlockState getDirectionState(BlockState state, CoordUtils.Surround
145145
if (state == null) {
146146
return null;
147147
}
148+
if (!state.hasProperty(DIRECTION)) return state;
148149
return state.setValue(DIRECTION, surround == null ? 0 : surround.ordinal() + 1);
149150
}
150151

0 commit comments

Comments
 (0)