summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHowaner <franzi.moos@googlemail.com>2014-02-19 14:12:34 +0100
committerTheJumper <maximilian.springer@web.de>2014-02-23 19:50:50 +0100
commita71e8be4d2d58df4e3c5b4688d2ca13338cb0657 (patch)
tree60dc54d05d8a4a7cba6b2be7416eb47e30657348
parentAdd Heads completely (diff)
downloadcuberite-a71e8be4d2d58df4e3c5b4688d2ca13338cb0657.tar
cuberite-a71e8be4d2d58df4e3c5b4688d2ca13338cb0657.tar.gz
cuberite-a71e8be4d2d58df4e3c5b4688d2ca13338cb0657.tar.bz2
cuberite-a71e8be4d2d58df4e3c5b4688d2ca13338cb0657.tar.lz
cuberite-a71e8be4d2d58df4e3c5b4688d2ca13338cb0657.tar.xz
cuberite-a71e8be4d2d58df4e3c5b4688d2ca13338cb0657.tar.zst
cuberite-a71e8be4d2d58df4e3c5b4688d2ca13338cb0657.zip
-rw-r--r--src/BlockEntities/SkullEntity.h14
-rw-r--r--src/Protocol/Protocol17x.cpp1
2 files changed, 8 insertions, 7 deletions
diff --git a/src/BlockEntities/SkullEntity.h b/src/BlockEntities/SkullEntity.h
index ffd84465f..3dc355623 100644
--- a/src/BlockEntities/SkullEntity.h
+++ b/src/BlockEntities/SkullEntity.h
@@ -34,7 +34,7 @@ public:
// tolua_end
- /// Creates a new skull entity at the specified block coords. a_World may be NULL
+ /** Creates a new skull entity at the specified block coords. a_World may be NULL */
cSkullEntity(int a_BlockX, int a_BlockY, int a_BlockZ, cWorld * a_World);
bool LoadFromJson( const Json::Value& a_Value );
@@ -42,22 +42,22 @@ public:
// tolua_begin
- /// Set the Skull Type
+ /** Set the Skull Type */
void SetSkullType(const eSkullType & a_SkullType);
- /// Set the Rotation
+ /** Set the Rotation */
void SetRotation(eSkullRotation a_Rotation);
- // Set the Player Name for Player Skulls
+ /** Set the Player Name for Player Skull */
void SetOwner(const AString & a_Owner);
- /// Get the Skull Type
+ /** Get the Skull Type */
eSkullType GetSkullType(void) const { return m_SkullType; }
- /// Get the Rotation
+ /** Get the Rotation */
eSkullRotation GetRotation(void) const { return m_Rotation; }
- /// Get the setted Player Name
+ /** Get the setted Player Name */
AString GetOwner(void) const { return m_Owner; }
// tolua_end
diff --git a/src/Protocol/Protocol17x.cpp b/src/Protocol/Protocol17x.cpp
index 213e6a1f8..5508c2cfe 100644
--- a/src/Protocol/Protocol17x.cpp
+++ b/src/Protocol/Protocol17x.cpp
@@ -2298,6 +2298,7 @@ void cProtocol172::cPacketizer::WriteBlockEntity(const cBlockEntity & a_BlockEnt
Writer.AddByte("Rot", SkullEntity.GetRotation() & 0xFF);
Writer.AddString("ExtraType", SkullEntity.GetOwner().c_str());
Writer.AddString("id", "Skull"); // "Tile Entity ID" - MC wiki; vanilla server always seems to send this though
+ break;
}
default: break;
}