diff options
author | madmaxoft <github@xoft.cz> | 2013-09-09 11:13:14 +0200 |
---|---|---|
committer | madmaxoft <github@xoft.cz> | 2013-09-09 11:13:14 +0200 |
commit | 5945166a980a09b3fa2c267ba19334ba48ca9df4 (patch) | |
tree | 5b15d4c022834316e031e81931569fc7305be415 /source/WorldStorage/NBTChunkSerializer.cpp | |
parent | Removed the cDoors class. (diff) | |
parent | Fixed a bunch of stuff (diff) | |
download | cuberite-5945166a980a09b3fa2c267ba19334ba48ca9df4.tar cuberite-5945166a980a09b3fa2c267ba19334ba48ca9df4.tar.gz cuberite-5945166a980a09b3fa2c267ba19334ba48ca9df4.tar.bz2 cuberite-5945166a980a09b3fa2c267ba19334ba48ca9df4.tar.lz cuberite-5945166a980a09b3fa2c267ba19334ba48ca9df4.tar.xz cuberite-5945166a980a09b3fa2c267ba19334ba48ca9df4.tar.zst cuberite-5945166a980a09b3fa2c267ba19334ba48ca9df4.zip |
Diffstat (limited to 'source/WorldStorage/NBTChunkSerializer.cpp')
-rw-r--r-- | source/WorldStorage/NBTChunkSerializer.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/source/WorldStorage/NBTChunkSerializer.cpp b/source/WorldStorage/NBTChunkSerializer.cpp index 32ac0daea..11dc50ee3 100644 --- a/source/WorldStorage/NBTChunkSerializer.cpp +++ b/source/WorldStorage/NBTChunkSerializer.cpp @@ -19,6 +19,7 @@ #include "../OSSupport/MakeDir.h" #include "FastNBT.h" #include "../Entities/FallingBlock.h" +#include "../Entities/Boat.h" #include "../Entities/Minecart.h" #include "../Mobs/Monster.h" #include "../Entities/Pickup.h" @@ -252,6 +253,17 @@ void cNBTChunkSerializer::AddBasicEntity(cEntity * a_Entity, const AString & a_C +void cNBTChunkSerializer::AddBoatEntity(cBoat * a_Boat) +{ + m_Writer.BeginCompound(""); + AddBasicEntity(a_Boat, "Boat"); + m_Writer.EndCompound(); +} + + + + + void cNBTChunkSerializer::AddFallingBlockEntity(cFallingBlock * a_FallingBlock) { m_Writer.BeginCompound(""); @@ -462,6 +474,7 @@ void cNBTChunkSerializer::Entity(cEntity * a_Entity) switch (a_Entity->GetEntityType()) { + case cEntity::etBoat: AddBoatEntity ((cBoat *) a_Entity); break; case cEntity::etFallingBlock: AddFallingBlockEntity((cFallingBlock *) a_Entity); break; case cEntity::etMinecart: AddMinecartEntity ((cMinecart *) a_Entity); break; case cEntity::etMonster: AddMonsterEntity ((cMonster *) a_Entity); break; |