Correct world height validations.
Unify the way we test block above the current one (Height - 1 instead of a_RelY + 1). Allow generation of world of flat height = 255
This commit is contained in:
@@ -377,7 +377,7 @@ void cFireSimulator::RemoveFuelNeighbors(cChunk * a_Chunk, int a_RelX, int a_Rel
|
||||
if (BlockType == E_BLOCK_TNT)
|
||||
{
|
||||
m_World.SpawnPrimedTNT(AbsX, Y, AbsZ, 0);
|
||||
Neighbour->SetBlock(X, a_RelY + Y, Z, E_BLOCK_AIR, 0);
|
||||
Neighbour->SetBlock(X, Y, Z, E_BLOCK_AIR, 0);
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user