summaryrefslogtreecommitdiffstats
path: root/source/cClientHandle.cpp
diff options
context:
space:
mode:
authormadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-06-09 18:51:52 +0200
committermadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-06-09 18:51:52 +0200
commit6bf5fa0d88afd5ebe526b0c7946499b27adce6bc (patch)
tree00022c5ac04d99e149126ba90b983fe0900311c2 /source/cClientHandle.cpp
parentSnow cover breaks when the block below it is removed (FS #184). (diff)
downloadcuberite-6bf5fa0d88afd5ebe526b0c7946499b27adce6bc.tar
cuberite-6bf5fa0d88afd5ebe526b0c7946499b27adce6bc.tar.gz
cuberite-6bf5fa0d88afd5ebe526b0c7946499b27adce6bc.tar.bz2
cuberite-6bf5fa0d88afd5ebe526b0c7946499b27adce6bc.tar.lz
cuberite-6bf5fa0d88afd5ebe526b0c7946499b27adce6bc.tar.xz
cuberite-6bf5fa0d88afd5ebe526b0c7946499b27adce6bc.tar.zst
cuberite-6bf5fa0d88afd5ebe526b0c7946499b27adce6bc.zip
Diffstat (limited to '')
-rw-r--r--source/cClientHandle.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/source/cClientHandle.cpp b/source/cClientHandle.cpp
index f9d74a0de..a48dd31ec 100644
--- a/source/cClientHandle.cpp
+++ b/source/cClientHandle.cpp
@@ -1332,6 +1332,8 @@ void cClientHandle::HandleBlockPlace(cPacket_BlockPlace * a_Packet)
// Check whether selected item is allowed to be placed on specific surface
if (!m_Player->GetWorld()->IsPlacingItemLegal(a_Packet->m_ItemType, X, Y, Z))
{
+ // If we don't send the block, MC is happy placing cacti underwater:
+ m_Player->GetWorld()->SendBlockTo(X, Y, Z, m_Player);
return;
}