summaryrefslogtreecommitdiffstats
path: root/src/Blocks/BlockDoor.cpp
diff options
context:
space:
mode:
authorTiger Wang <ziwei.tiger@outlook.com>2020-08-04 19:26:25 +0200
committerTiger Wang <ziwei.tiger@outlook.com>2020-08-04 19:26:25 +0200
commit5bb6512435f86f18832543765e38e46c99ebf626 (patch)
tree465d974f69a0d36f1214da368f2beb5c385c228c /src/Blocks/BlockDoor.cpp
parentContinue with placement when using iron doors (diff)
downloadcuberite-5bb6512435f86f18832543765e38e46c99ebf626.tar
cuberite-5bb6512435f86f18832543765e38e46c99ebf626.tar.gz
cuberite-5bb6512435f86f18832543765e38e46c99ebf626.tar.bz2
cuberite-5bb6512435f86f18832543765e38e46c99ebf626.tar.lz
cuberite-5bb6512435f86f18832543765e38e46c99ebf626.tar.xz
cuberite-5bb6512435f86f18832543765e38e46c99ebf626.tar.zst
cuberite-5bb6512435f86f18832543765e38e46c99ebf626.zip
Diffstat (limited to 'src/Blocks/BlockDoor.cpp')
-rw-r--r--src/Blocks/BlockDoor.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Blocks/BlockDoor.cpp b/src/Blocks/BlockDoor.cpp
index 3365d6d15..5c5a4b545 100644
--- a/src/Blocks/BlockDoor.cpp
+++ b/src/Blocks/BlockDoor.cpp
@@ -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);