summaryrefslogtreecommitdiffstats
path: root/source/WorldStorage/NBTChunkSerializer.cpp
diff options
context:
space:
mode:
authormadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2013-03-09 21:08:39 +0100
committermadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2013-03-09 21:08:39 +0100
commite694893edf835d426eba8e1da042f7a65ec06c1e (patch)
tree68d75f171b2a95b923421199781f8b2a1057d120 /source/WorldStorage/NBTChunkSerializer.cpp
parentPickups are now being saved into Anvil. (diff)
downloadcuberite-e694893edf835d426eba8e1da042f7a65ec06c1e.tar
cuberite-e694893edf835d426eba8e1da042f7a65ec06c1e.tar.gz
cuberite-e694893edf835d426eba8e1da042f7a65ec06c1e.tar.bz2
cuberite-e694893edf835d426eba8e1da042f7a65ec06c1e.tar.lz
cuberite-e694893edf835d426eba8e1da042f7a65ec06c1e.tar.xz
cuberite-e694893edf835d426eba8e1da042f7a65ec06c1e.tar.zst
cuberite-e694893edf835d426eba8e1da042f7a65ec06c1e.zip
Diffstat (limited to 'source/WorldStorage/NBTChunkSerializer.cpp')
-rw-r--r--source/WorldStorage/NBTChunkSerializer.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/source/WorldStorage/NBTChunkSerializer.cpp b/source/WorldStorage/NBTChunkSerializer.cpp
index f41bd5e97..992fa7f69 100644
--- a/source/WorldStorage/NBTChunkSerializer.cpp
+++ b/source/WorldStorage/NBTChunkSerializer.cpp
@@ -231,9 +231,9 @@ void cNBTChunkSerializer::AddMinecartEntity(cMinecart * a_Minecart)
const char * EntityClass = NULL;
switch (a_Minecart->GetPayload())
{
- case cMinecart::mpNone: EntityClass = "MinecarRideable"; break;
- case cMinecart::mpChest: EntityClass = "MinecartChest"; break;
- case cMinecart::mpFurnace: EntityClass = "MinecartFurnace"; break;
+ case cMinecart::mpNone: EntityClass = "MinecartRideable"; break;
+ case cMinecart::mpChest: EntityClass = "MinecartChest"; break;
+ case cMinecart::mpFurnace: EntityClass = "MinecartFurnace"; break;
default:
{
ASSERT(!"Unhandled minecart payload type");
@@ -293,7 +293,7 @@ void cNBTChunkSerializer::AddMinecartChestContents(cMinecartWithChest * a_Mineca
m_Writer.BeginList("Items", TAG_Compound);
for (int i = 0; i < cMinecartWithChest::NumSlots; i++)
{
- const cItem & Item = a_Minecart->GetItem(i);
+ const cItem & Item = a_Minecart->GetSlot(i);
if (Item.IsEmpty())
{
continue;