diff options
author | madmaxoft <github@xoft.cz> | 2014-01-17 10:44:23 +0100 |
---|---|---|
committer | madmaxoft <github@xoft.cz> | 2014-01-17 10:44:23 +0100 |
commit | ed1d336614173daaecf0f5c43e8a174970cef631 (patch) | |
tree | 3d3526ac7a8bd61a6eaf03293d4197a71dd9200f /src/WorldStorage | |
parent | Protocol 1.7: More output on unknown packets / protocol states. (diff) | |
parent | Changed newline character because of issues (diff) | |
download | cuberite-ed1d336614173daaecf0f5c43e8a174970cef631.tar cuberite-ed1d336614173daaecf0f5c43e8a174970cef631.tar.gz cuberite-ed1d336614173daaecf0f5c43e8a174970cef631.tar.bz2 cuberite-ed1d336614173daaecf0f5c43e8a174970cef631.tar.lz cuberite-ed1d336614173daaecf0f5c43e8a174970cef631.tar.xz cuberite-ed1d336614173daaecf0f5c43e8a174970cef631.tar.zst cuberite-ed1d336614173daaecf0f5c43e8a174970cef631.zip |
Diffstat (limited to '')
-rw-r--r-- | src/WorldStorage/NBTChunkSerializer.cpp | 2 | ||||
-rw-r--r-- | src/WorldStorage/WSSAnvil.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/WorldStorage/NBTChunkSerializer.cpp b/src/WorldStorage/NBTChunkSerializer.cpp index e5043de1f..f376622e2 100644 --- a/src/WorldStorage/NBTChunkSerializer.cpp +++ b/src/WorldStorage/NBTChunkSerializer.cpp @@ -257,7 +257,7 @@ void cNBTChunkSerializer::AddBasicEntity(cEntity * a_Entity, const AString & a_C m_Writer.AddDouble("", a_Entity->GetSpeedZ()); m_Writer.EndList(); m_Writer.BeginList("Rotation", TAG_Double); - m_Writer.AddDouble("", a_Entity->GetRotation()); + m_Writer.AddDouble("", a_Entity->GetRot().x); m_Writer.AddDouble("", a_Entity->GetPitch()); m_Writer.EndList(); } diff --git a/src/WorldStorage/WSSAnvil.cpp b/src/WorldStorage/WSSAnvil.cpp index 8605930b6..f8e5a2fdf 100644 --- a/src/WorldStorage/WSSAnvil.cpp +++ b/src/WorldStorage/WSSAnvil.cpp @@ -1891,7 +1891,7 @@ bool cWSSAnvil::LoadEntityBaseFromNBT(cEntity & a_Entity, const cParsedNBT & a_N { return false; } - a_Entity.SetRotation(Rotation[0]); + a_Entity.SetYaw(Rotation[0]); a_Entity.SetRoll (Rotation[1]); return true; |