1
0

Fixed lighters replacing blocks

This commit is contained in:
Tiger Wang 2013-08-23 18:13:54 +01:00
parent 0c44904766
commit 52d8da6ebe

View File

@ -40,12 +40,15 @@ public:
} }
default: default:
{ {
// Light a fire next to the block: // Light a fire next to/on top of the block if air:
AddFaceDirection(a_BlockX, a_BlockY, a_BlockZ, a_BlockFace); AddFaceDirection(a_BlockX, a_BlockY, a_BlockZ, a_BlockFace);
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); a_World->SetBlock(a_BlockX, a_BlockY, a_BlockZ, E_BLOCK_FIRE, 0);
break; break;
} }
} }
}
return false; return false;
} }