diff options
author | Mattes D <github@xoft.cz> | 2014-03-25 21:02:23 +0100 |
---|---|---|
committer | Mattes D <github@xoft.cz> | 2014-03-25 21:02:23 +0100 |
commit | cac5149974b9cd76abbedc9d08a75b0e4f7b7e03 (patch) | |
tree | 38b2f9d52cb2dc106d4211f61da5953646a4bdeb /src/WorldStorage/NBTChunkSerializer.cpp | |
parent | Merge pull request #828 from mc-server/Wither (diff) | |
parent | Ender crystals (diff) | |
download | cuberite-cac5149974b9cd76abbedc9d08a75b0e4f7b7e03.tar cuberite-cac5149974b9cd76abbedc9d08a75b0e4f7b7e03.tar.gz cuberite-cac5149974b9cd76abbedc9d08a75b0e4f7b7e03.tar.bz2 cuberite-cac5149974b9cd76abbedc9d08a75b0e4f7b7e03.tar.lz cuberite-cac5149974b9cd76abbedc9d08a75b0e4f7b7e03.tar.xz cuberite-cac5149974b9cd76abbedc9d08a75b0e4f7b7e03.tar.zst cuberite-cac5149974b9cd76abbedc9d08a75b0e4f7b7e03.zip |
Diffstat (limited to 'src/WorldStorage/NBTChunkSerializer.cpp')
-rw-r--r-- | src/WorldStorage/NBTChunkSerializer.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/WorldStorage/NBTChunkSerializer.cpp b/src/WorldStorage/NBTChunkSerializer.cpp index f9cca1495..415693ae2 100644 --- a/src/WorldStorage/NBTChunkSerializer.cpp +++ b/src/WorldStorage/NBTChunkSerializer.cpp @@ -23,6 +23,7 @@ #include "../BlockEntities/FlowerPotEntity.h" #include "../Entities/Entity.h" +#include "../Entities/EnderCrystal.h" #include "../Entities/FallingBlock.h" #include "../Entities/Boat.h" #include "../Entities/Minecart.h" @@ -336,6 +337,17 @@ void cNBTChunkSerializer::AddBoatEntity(cBoat * a_Boat) +void cNBTChunkSerializer::AddEnderCrystalEntity(cEnderCrystal * a_EnderCrystal) +{ + m_Writer.BeginCompound(""); + AddBasicEntity(a_EnderCrystal, "EnderCrystal"); + m_Writer.EndCompound(); +} + + + + + void cNBTChunkSerializer::AddFallingBlockEntity(cFallingBlock * a_FallingBlock) { m_Writer.BeginCompound(""); @@ -735,6 +747,7 @@ void cNBTChunkSerializer::Entity(cEntity * a_Entity) switch (a_Entity->GetEntityType()) { case cEntity::etBoat: AddBoatEntity ((cBoat *) a_Entity); break; + case cEntity::etEnderCrystal: AddEnderCrystalEntity((cEnderCrystal *) 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; |