1
0

Finished mob spawner implementation.

This commit is contained in:
Howaner
2014-11-18 15:33:41 +01:00
parent 42120e2ea5
commit 8b028c5c78
18 changed files with 78 additions and 124 deletions

View File

@@ -294,9 +294,10 @@ void cNBTChunkSerializer::AddJukeboxEntity(cJukeboxEntity * a_Jukebox)
void cNBTChunkSerializer::AddMobSpawnerEntity(cMobSpawnerEntity * a_MobSpawner)
{
m_Writer.BeginCompound("");
AddBasicTileEntity(a_MobSpawner, "MobSpawner");
AddBasicTileEntity(a_MobSpawner, "MobSpawner");
m_Writer.AddShort("Entity", static_cast<short>(a_MobSpawner->GetEntity()));
m_Writer.AddString("EntityId", a_MobSpawner->GetEntityName());
m_Writer.AddShort("Delay", (Int16)a_MobSpawner->GetSpawnDelay());
m_Writer.AddShort("Delay", a_MobSpawner->GetSpawnDelay());
m_Writer.EndCompound();
}