Skip to content

Commit

Permalink
Small fix (supportingBlock != null)
Browse files Browse the repository at this point in the history
  • Loading branch information
Theta-Dev committed Mar 14, 2021
1 parent cdba987 commit f60692f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ private static BlockState getPlaceBlockstate(World world, PlayerEntity player, B
if(blockState.getBlock() == Blocks.AIR || !blockState.isValidPosition(world, pos)) return null;

// Copy block properties from supporting block
if(targetMode) {
if(targetMode && supportingBlock != null) {
// Block properties to be copied (alignment/rotation properties)

for(Property property : new Property[]{
Expand Down

0 comments on commit f60692f

Please sign in to comment.