Skip to content

Commit

Permalink
Twisted vines structure fix
Browse files Browse the repository at this point in the history
  • Loading branch information
paulevsGitch committed Mar 20, 2020
1 parent f7ac4ee commit 686a311
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,10 @@ public void generate(IWorld world, BlockPos pos, Random random)
if (world.isAir(npos) && canPlaceAt(world, npos))
{
int h = random.nextInt(20) + 1;
int sy = npos.getY();
for (int n = 0; n < h; n++)
{
npos.setY(sy + n);
if (!world.isAir(npos.up()))
{
BlocksHelper.setWithoutUpdate(world, npos, Blocks.TWISTING_VINES.getDefaultState());
Expand Down

0 comments on commit 686a311

Please sign in to comment.