summaryrefslogtreecommitdiffstats
path: root/src/ClientHandle.cpp
diff options
context:
space:
mode:
authorMat <mail@mathias.is>2020-01-15 22:54:48 +0100
committerGitHub <noreply@github.com>2020-01-15 22:54:48 +0100
commit6d938c0e3fcad682e06d5ec4302f89427495c7a2 (patch)
tree3de538ba502fbd15bdaa082281e5465a8c22bcc1 /src/ClientHandle.cpp
parentAdded an UpgradeBlockTypePalette check script. (diff)
downloadcuberite-6d938c0e3fcad682e06d5ec4302f89427495c7a2.tar
cuberite-6d938c0e3fcad682e06d5ec4302f89427495c7a2.tar.gz
cuberite-6d938c0e3fcad682e06d5ec4302f89427495c7a2.tar.bz2
cuberite-6d938c0e3fcad682e06d5ec4302f89427495c7a2.tar.lz
cuberite-6d938c0e3fcad682e06d5ec4302f89427495c7a2.tar.xz
cuberite-6d938c0e3fcad682e06d5ec4302f89427495c7a2.tar.zst
cuberite-6d938c0e3fcad682e06d5ec4302f89427495c7a2.zip
Diffstat (limited to 'src/ClientHandle.cpp')
-rw-r--r--src/ClientHandle.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ClientHandle.cpp b/src/ClientHandle.cpp
index b2e8c893f..49a882c77 100644
--- a/src/ClientHandle.cpp
+++ b/src/ClientHandle.cpp
@@ -1453,7 +1453,7 @@ void cClientHandle::HandleRightClick(int a_BlockX, int a_BlockY, int a_BlockZ, e
cBlockHandler * BlockHandler = cBlockInfo::GetHandler(BlockType);
bool Placeable = ItemHandler->IsPlaceable() && !m_Player->IsGameModeAdventure() && !m_Player->IsGameModeSpectator();
- bool BlockUsable = BlockHandler->IsUseable() && !m_Player->IsGameModeAdventure() && (!m_Player->IsGameModeSpectator() || cBlockInfo::IsUseableBySpectator(BlockType));
+ bool BlockUsable = BlockHandler->IsUseable() && (!m_Player->IsGameModeSpectator() || cBlockInfo::IsUseableBySpectator(BlockType));
if (BlockUsable && !(m_Player->IsCrouched() && !HeldItem.IsEmpty()))
{