summaryrefslogtreecommitdiffstats
path: root/src/Entities/HangingEntity.cpp
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2014-09-25 20:45:54 +0200
committerMattes D <github@xoft.cz>2014-09-25 20:45:54 +0200
commite751f4ffe3856134f4a8c49be31c41b94815322f (patch)
tree361d520144c3cb7a9e6fa37da6ee4ae65afcbd6b /src/Entities/HangingEntity.cpp
parentProtocol 1.8: Handling packet compression properly. (diff)
parentComment style (diff)
downloadcuberite-e751f4ffe3856134f4a8c49be31c41b94815322f.tar
cuberite-e751f4ffe3856134f4a8c49be31c41b94815322f.tar.gz
cuberite-e751f4ffe3856134f4a8c49be31c41b94815322f.tar.bz2
cuberite-e751f4ffe3856134f4a8c49be31c41b94815322f.tar.lz
cuberite-e751f4ffe3856134f4a8c49be31c41b94815322f.tar.xz
cuberite-e751f4ffe3856134f4a8c49be31c41b94815322f.tar.zst
cuberite-e751f4ffe3856134f4a8c49be31c41b94815322f.zip
Diffstat (limited to '')
-rw-r--r--src/Entities/HangingEntity.cpp15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/Entities/HangingEntity.cpp b/src/Entities/HangingEntity.cpp
index 6e9a89550..3276bc4a0 100644
--- a/src/Entities/HangingEntity.cpp
+++ b/src/Entities/HangingEntity.cpp
@@ -21,6 +21,21 @@ cHangingEntity::cHangingEntity(eEntityType a_EntityType, eBlockFace a_BlockFace,
+void cHangingEntity::SetDirection(eBlockFace a_BlockFace)
+{
+ if ((a_BlockFace < 2) || (a_BlockFace > 5))
+ {
+ ASSERT(!"Tried to set a bad direction!");
+ return;
+ }
+
+ m_BlockFace = a_BlockFace;
+}
+
+
+
+
+
void cHangingEntity::SpawnOn(cClientHandle & a_ClientHandle)
{
int Dir = 0;