summaryrefslogtreecommitdiffstats
path: root/src/Entities/HangingEntity.cpp
diff options
context:
space:
mode:
authorHowaner <franzi.moos@googlemail.com>2014-09-25 18:37:24 +0200
committerHowaner <franzi.moos@googlemail.com>2014-09-25 18:37:24 +0200
commitdaf5127b28f3c6884e94fc066b3e5e117a6b5d35 (patch)
treef4f3353962c83967a23b4ee9ba5476697f383be9 /src/Entities/HangingEntity.cpp
parentMerge pull request #1449 from mc-server/WorldLoader (diff)
downloadcuberite-daf5127b28f3c6884e94fc066b3e5e117a6b5d35.tar
cuberite-daf5127b28f3c6884e94fc066b3e5e117a6b5d35.tar.gz
cuberite-daf5127b28f3c6884e94fc066b3e5e117a6b5d35.tar.bz2
cuberite-daf5127b28f3c6884e94fc066b3e5e117a6b5d35.tar.lz
cuberite-daf5127b28f3c6884e94fc066b3e5e117a6b5d35.tar.xz
cuberite-daf5127b28f3c6884e94fc066b3e5e117a6b5d35.tar.zst
cuberite-daf5127b28f3c6884e94fc066b3e5e117a6b5d35.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 8c70c606e..e789f5f18 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;