summaryrefslogtreecommitdiffstats
path: root/source/WorldStorage/NBTChunkSerializer.cpp
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2013-09-09 11:13:14 +0200
committermadmaxoft <github@xoft.cz>2013-09-09 11:13:14 +0200
commit5945166a980a09b3fa2c267ba19334ba48ca9df4 (patch)
tree5b15d4c022834316e031e81931569fc7305be415 /source/WorldStorage/NBTChunkSerializer.cpp
parentRemoved the cDoors class. (diff)
parentFixed a bunch of stuff (diff)
downloadcuberite-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.cpp13
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;