1
0
Fork 0

Fixed flint&steel failure on the Y world edges.

This commit is contained in:
madmaxoft 2014-01-23 22:24:20 +01:00
parent 0e10120fc7
commit 22d101034f
1 changed files with 4 additions and 0 deletions

View File

@ -42,6 +42,10 @@ public:
{
// Light a fire next to/on top of the block if air:
AddFaceDirection(a_BlockX, a_BlockY, a_BlockZ, a_BlockFace);
if ((a_BlockY < 0) || (a_BlockY >= cChunkDef::Height))
{
break;
}
if (a_World->GetBlock(a_BlockX, a_BlockY, a_BlockZ) == E_BLOCK_AIR)
{
a_World->SetBlock(a_BlockX, a_BlockY, a_BlockZ, E_BLOCK_FIRE, 0);