diff options
author | Mattes D <github@xoft.cz> | 2014-09-25 20:45:54 +0200 |
---|---|---|
committer | Mattes D <github@xoft.cz> | 2014-09-25 20:45:54 +0200 |
commit | e751f4ffe3856134f4a8c49be31c41b94815322f (patch) | |
tree | 361d520144c3cb7a9e6fa37da6ee4ae65afcbd6b /src/WorldStorage/NBTChunkSerializer.cpp | |
parent | Protocol 1.8: Handling packet compression properly. (diff) | |
parent | Comment style (diff) | |
download | cuberite-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/WorldStorage/NBTChunkSerializer.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/WorldStorage/NBTChunkSerializer.cpp b/src/WorldStorage/NBTChunkSerializer.cpp index 08ed893f5..849e9eb77 100644 --- a/src/WorldStorage/NBTChunkSerializer.cpp +++ b/src/WorldStorage/NBTChunkSerializer.cpp @@ -637,9 +637,9 @@ void cNBTChunkSerializer::AddProjectileEntity(cProjectileEntity * a_Projectile) { cArrowEntity * Arrow = (cArrowEntity *)a_Projectile; - m_Writer.AddInt("xTile", (Int16)Arrow->GetBlockHit().x); - m_Writer.AddInt("yTile", (Int16)Arrow->GetBlockHit().y); - m_Writer.AddInt("zTile", (Int16)Arrow->GetBlockHit().z); + m_Writer.AddShort("xTile", (Int16)Arrow->GetBlockHit().x); + m_Writer.AddShort("yTile", (Int16)Arrow->GetBlockHit().y); + m_Writer.AddShort("zTile", (Int16)Arrow->GetBlockHit().z); m_Writer.AddByte("pickup", Arrow->GetPickupState()); m_Writer.AddDouble("damage", Arrow->GetDamageCoeff()); break; |