summaryrefslogtreecommitdiffstats
path: root/source/cClientHandle.cpp
diff options
context:
space:
mode:
authorfaketruth <faketruth@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-01-01 03:48:26 +0100
committerfaketruth <faketruth@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-01-01 03:48:26 +0100
commit4f176ee68548d5d7aa9559ed745a5bc93e35791c (patch)
tree3965a843bc64d3e79133df1163812f56f7e13994 /source/cClientHandle.cpp
parentMade a couple of functions in cChunk inline, this should speed up several block operations on chunks (diff)
downloadcuberite-4f176ee68548d5d7aa9559ed745a5bc93e35791c.tar
cuberite-4f176ee68548d5d7aa9559ed745a5bc93e35791c.tar.gz
cuberite-4f176ee68548d5d7aa9559ed745a5bc93e35791c.tar.bz2
cuberite-4f176ee68548d5d7aa9559ed745a5bc93e35791c.tar.lz
cuberite-4f176ee68548d5d7aa9559ed745a5bc93e35791c.tar.xz
cuberite-4f176ee68548d5d7aa9559ed745a5bc93e35791c.tar.zst
cuberite-4f176ee68548d5d7aa9559ed745a5bc93e35791c.zip
Diffstat (limited to 'source/cClientHandle.cpp')
-rw-r--r--source/cClientHandle.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/source/cClientHandle.cpp b/source/cClientHandle.cpp
index 6f38a1f27..b90f50c72 100644
--- a/source/cClientHandle.cpp
+++ b/source/cClientHandle.cpp
@@ -959,6 +959,11 @@ void cClientHandle::HandlePacket( cPacket* a_Packet )
isDoor = true;
}
break;
+ case E_BLOCK_CHEST:
+ case E_BLOCK_FURNACE:
+ case E_BLOCK_DISPENSER:
+ MetaData = cPiston::RotationPitchToMetaData( m_Player->GetRotation(), 0 ); // Same orientation as pistons, just ignore pitch
+ break;
case E_BLOCK_COBBLESTONE_STAIRS:
case E_BLOCK_BRICK_STAIRS:
case E_BLOCK_STONE_BRICK_STAIRS: