summaryrefslogtreecommitdiffstats
path: root/src/Blocks/BlockDoor.cpp
diff options
context:
space:
mode:
authorTiger Wang <ziwei.tiger@outlook.com>2020-08-04 18:54:37 +0200
committerTiger Wang <ziwei.tiger@outlook.com>2020-08-04 19:18:37 +0200
commit766a950d2029d864e5fb5d924ca411dfc0e731ca (patch)
tree1cfffffc066db4d01b86a8f79e368d5ea92eb1d0 /src/Blocks/BlockDoor.cpp
parentDoor drops respect player gamemode (diff)
downloadcuberite-766a950d2029d864e5fb5d924ca411dfc0e731ca.tar
cuberite-766a950d2029d864e5fb5d924ca411dfc0e731ca.tar.gz
cuberite-766a950d2029d864e5fb5d924ca411dfc0e731ca.tar.bz2
cuberite-766a950d2029d864e5fb5d924ca411dfc0e731ca.tar.lz
cuberite-766a950d2029d864e5fb5d924ca411dfc0e731ca.tar.xz
cuberite-766a950d2029d864e5fb5d924ca411dfc0e731ca.tar.zst
cuberite-766a950d2029d864e5fb5d924ca411dfc0e731ca.zip
Diffstat (limited to 'src/Blocks/BlockDoor.cpp')
-rw-r--r--src/Blocks/BlockDoor.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/Blocks/BlockDoor.cpp b/src/Blocks/BlockDoor.cpp
index 4e9ca725f..3365d6d15 100644
--- a/src/Blocks/BlockDoor.cpp
+++ b/src/Blocks/BlockDoor.cpp
@@ -75,11 +75,13 @@ bool cBlockDoorHandler::OnUse(
a_Player.GetWorld()->BroadcastSoundParticleEffect(EffectID::SFX_RANDOM_WOODEN_DOOR_OPEN, a_BlockPos, 0, a_Player.GetClientHandle());
break;
}
- // Prevent iron door from opening on player click
case E_BLOCK_IRON_DOOR:
{
+ // Prevent iron door from opening on player click (#2415):
OnCancelRightClick(a_ChunkInterface, a_WorldInterface, a_Player, a_BlockPos, a_BlockFace);
- break;
+
+ // Allow placement actions to instead take place:
+ return false;
}
}