Skip to content

Commit

Permalink
🐛 fix icicle placing on non-horizontal face NPE
Browse files Browse the repository at this point in the history
  • Loading branch information
LocusAzzurro committed Feb 10, 2024
1 parent f3b0b77 commit 86cc2e9
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ public int getNumVariants() {
@Override
public BlockState getStateForPlacement(BlockPlaceContext pContext) {
BlockState state = super.getStateForPlacement(pContext);
if (state == null) return null;
return state.setValue(VARIANT, 0);
}

Expand Down

0 comments on commit 86cc2e9

Please sign in to comment.