Merge pull request #521 from ProgrammerHero/master

Fixed a bug that prevented proper lava generation near bedrock
This commit is contained in:
LexManos 2013-04-15 10:17:01 -07:00
commit 4bd7d4f3d9
2 changed files with 4 additions and 4 deletions

View file

@ -24,7 +24,7 @@
- byte b0 = par5ArrayOfByte[j4];
-
- if (b0 == Block.grass.blockID)
+ if (isTopBlock(par5ArrayOfByte, j4, j3, k2, k3, par3, par4))
+ if (isTopBlock(par5ArrayOfByte, j4, j3, k4, k3, par3, par4))
{
flag3 = true;
}
@ -45,7 +45,7 @@
- }
- }
- }
+ digBlock(par5ArrayOfByte, j4, j3, k2, k3, par3, par4, flag3);
+ digBlock(par5ArrayOfByte, j4, j3, k4, k3, par3, par4, flag3);
}
--j4;

View file

@ -24,7 +24,7 @@
- byte b0 = par5ArrayOfByte[j4];
-
- if (b0 == Block.grass.blockID)
+ if (isTopBlock(par5ArrayOfByte, j4, j3, k2, k3, par3, par4))
+ if (isTopBlock(par5ArrayOfByte, j4, j3, k4, k3, par3, par4))
{
flag2 = true;
}
@ -45,7 +45,7 @@
- }
- }
- }
+ digBlock(par5ArrayOfByte, j4, j3, k2, k3, par3, par4, flag2);
+ digBlock(par5ArrayOfByte, j4, j3, k4, k3, par3, par4, flag2);
}
--j4;