Skip to content

Commit

Permalink
Fix crashing when trying to replace snow. (Pulled from 1.12)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexbegt committed Aug 12, 2017
1 parent 52121e9 commit a9f98ee
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -229,7 +229,7 @@ protected void placeTrunk(World world, BlockPos pos, int height)
IBlockState state = world.getBlockState(blockpos);
Block block = state.getBlock();

if (block.isAir(state, world, blockpos) || block == null || block.isLeaves(state, world, blockpos))
if (block == null || block.isAir(state, world, blockpos) || block.isLeaves(state, world, blockpos) || block.isReplaceable(world, blockpos))
{
world.setBlockState(blockpos, this.log, 2);
}
Expand Down

0 comments on commit a9f98ee

Please sign in to comment.