diff options
author | Tiger Wang <ziwei.tiger@hotmail.co.uk> | 2014-09-13 00:18:02 +0200 |
---|---|---|
committer | Tiger Wang <ziwei.tiger@hotmail.co.uk> | 2014-09-13 00:18:02 +0200 |
commit | 3e741134279e02d204a8d4638f2d46dfbf814d0c (patch) | |
tree | a6781315a66a2fb6f8c16ab21f9f36ea7741fb6d /src/WorldStorage | |
parent | Fixed friction being applied whilst airborne (diff) | |
download | cuberite-3e741134279e02d204a8d4638f2d46dfbf814d0c.tar cuberite-3e741134279e02d204a8d4638f2d46dfbf814d0c.tar.gz cuberite-3e741134279e02d204a8d4638f2d46dfbf814d0c.tar.bz2 cuberite-3e741134279e02d204a8d4638f2d46dfbf814d0c.tar.lz cuberite-3e741134279e02d204a8d4638f2d46dfbf814d0c.tar.xz cuberite-3e741134279e02d204a8d4638f2d46dfbf814d0c.tar.zst cuberite-3e741134279e02d204a8d4638f2d46dfbf814d0c.zip |
Diffstat (limited to 'src/WorldStorage')
-rw-r--r-- | src/WorldStorage/NBTChunkSerializer.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/WorldStorage/NBTChunkSerializer.cpp b/src/WorldStorage/NBTChunkSerializer.cpp index 68e541eba..963e016d6 100644 --- a/src/WorldStorage/NBTChunkSerializer.cpp +++ b/src/WorldStorage/NBTChunkSerializer.cpp @@ -738,7 +738,7 @@ void cNBTChunkSerializer::AddItemFrameEntity(cItemFrame * a_ItemFrame) void cNBTChunkSerializer::AddMinecartChestContents(cMinecartWithChest * a_Minecart) { m_Writer.BeginList("Items", TAG_Compound); - for (int i = 0; i < cMinecartWithChest::NumSlots; i++) + for (int i = 0; i < cMinecartWithChest::ContentsHeight * cMinecartWithChest::ContentsWidth; i++) { const cItem & Item = a_Minecart->GetSlot(i); if (Item.IsEmpty()) |