diff options
author | Howaner <franzi.moos@googlemail.com> | 2014-09-25 19:01:44 +0200 |
---|---|---|
committer | Howaner <franzi.moos@googlemail.com> | 2014-09-25 19:01:44 +0200 |
commit | 7cdcf0a8833b56a98d60a87a341607fed988cac7 (patch) | |
tree | 42631bf20d000587139067926e464a7880785a9b /src/WorldStorage/NBTChunkSerializer.cpp | |
parent | Use the json writer to write sign texts. (diff) | |
download | cuberite-7cdcf0a8833b56a98d60a87a341607fed988cac7.tar cuberite-7cdcf0a8833b56a98d60a87a341607fed988cac7.tar.gz cuberite-7cdcf0a8833b56a98d60a87a341607fed988cac7.tar.bz2 cuberite-7cdcf0a8833b56a98d60a87a341607fed988cac7.tar.lz cuberite-7cdcf0a8833b56a98d60a87a341607fed988cac7.tar.xz cuberite-7cdcf0a8833b56a98d60a87a341607fed988cac7.tar.zst cuberite-7cdcf0a8833b56a98d60a87a341607fed988cac7.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; |