summaryrefslogtreecommitdiffstats
path: root/src/Protocol/Protocol_1_9.cpp
diff options
context:
space:
mode:
authorLukas Pioch <lukas@zgow.de>2017-06-05 15:49:36 +0200
committerLukas Pioch <lukas@zgow.de>2017-06-09 12:16:44 +0200
commit4e0ae63ec2ce5d4e1c1d434fcd9704b7131e6b41 (patch)
tree5609066f2b590bee292b3c019ce72803101e76f7 /src/Protocol/Protocol_1_9.cpp
parentFixed handling Lua errors in nested callbacks (#3755) (diff)
downloadcuberite-4e0ae63ec2ce5d4e1c1d434fcd9704b7131e6b41.tar
cuberite-4e0ae63ec2ce5d4e1c1d434fcd9704b7131e6b41.tar.gz
cuberite-4e0ae63ec2ce5d4e1c1d434fcd9704b7131e6b41.tar.bz2
cuberite-4e0ae63ec2ce5d4e1c1d434fcd9704b7131e6b41.tar.lz
cuberite-4e0ae63ec2ce5d4e1c1d434fcd9704b7131e6b41.tar.xz
cuberite-4e0ae63ec2ce5d4e1c1d434fcd9704b7131e6b41.tar.zst
cuberite-4e0ae63ec2ce5d4e1c1d434fcd9704b7131e6b41.zip
Diffstat (limited to '')
-rw-r--r--src/Protocol/Protocol_1_9.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/Protocol/Protocol_1_9.cpp b/src/Protocol/Protocol_1_9.cpp
index da8965be0..d1b717bd0 100644
--- a/src/Protocol/Protocol_1_9.cpp
+++ b/src/Protocol/Protocol_1_9.cpp
@@ -3501,7 +3501,9 @@ void cProtocol_1_9_0::WriteBlockEntity(cPacketizer & a_Pkt, const cBlockEntity &
Writer.AddInt("x", MobSpawnerEntity.GetPosX());
Writer.AddInt("y", MobSpawnerEntity.GetPosY());
Writer.AddInt("z", MobSpawnerEntity.GetPosZ());
- Writer.AddString("EntityId", cMonster::MobTypeToVanillaName(MobSpawnerEntity.GetEntity()));
+ Writer.BeginCompound("SpawnData");
+ Writer.AddString("id", cMonster::MobTypeToVanillaName(MobSpawnerEntity.GetEntity()));
+ Writer.EndCompound();
Writer.AddShort("Delay", MobSpawnerEntity.GetSpawnDelay());
Writer.AddString("id", "MobSpawner");
break;