Simply Y-check in door handler
This commit is contained in:
parent
766a950d20
commit
5bb6512435
@ -33,7 +33,7 @@ void cBlockDoorHandler::OnBroken(cChunkInterface & a_ChunkInterface, cWorldInter
|
||||
else
|
||||
{
|
||||
const auto Upper = a_BlockPos.addedY(1);
|
||||
if ((Upper.y <= cChunkDef::Height - 1) && IsDoorBlockType(a_ChunkInterface.GetBlock(Upper)))
|
||||
if ((Upper.y < cChunkDef::Height) && IsDoorBlockType(a_ChunkInterface.GetBlock(Upper)))
|
||||
{
|
||||
// Was lower part, remove upper:
|
||||
a_ChunkInterface.SetBlock(Upper, E_BLOCK_AIR, 0);
|
||||
|
Loading…
Reference in New Issue
Block a user