diff options
author | madmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2013-04-10 23:03:15 +0200 |
---|---|---|
committer | madmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2013-04-10 23:03:15 +0200 |
commit | 929d29996585c4f2e4461519ccf2803936b81ae1 (patch) | |
tree | 86a5210c4384c9292d2d7b697f24d1dc8a6e2e6a /source/WorldStorage | |
parent | Added cItemGrid to represent an XY grid of items; converted chests to use cItemGrid. (diff) | |
download | cuberite-929d29996585c4f2e4461519ccf2803936b81ae1.tar cuberite-929d29996585c4f2e4461519ccf2803936b81ae1.tar.gz cuberite-929d29996585c4f2e4461519ccf2803936b81ae1.tar.bz2 cuberite-929d29996585c4f2e4461519ccf2803936b81ae1.tar.lz cuberite-929d29996585c4f2e4461519ccf2803936b81ae1.tar.xz cuberite-929d29996585c4f2e4461519ccf2803936b81ae1.tar.zst cuberite-929d29996585c4f2e4461519ccf2803936b81ae1.zip |
Diffstat (limited to '')
-rw-r--r-- | source/WorldStorage/NBTChunkSerializer.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/WorldStorage/NBTChunkSerializer.cpp b/source/WorldStorage/NBTChunkSerializer.cpp index e033bfb9b..cf53e4434 100644 --- a/source/WorldStorage/NBTChunkSerializer.cpp +++ b/source/WorldStorage/NBTChunkSerializer.cpp @@ -79,7 +79,7 @@ void cNBTChunkSerializer::AddItemGrid(const cItemGrid & a_Grid, int a_BeginSlotN int NumSlots = a_Grid.GetNumSlots();
for (int i = 0; i < NumSlots; i++)
{
- const cItem & Item = a_Grid.GetItem(i);
+ const cItem & Item = a_Grid.GetSlot(i);
if (Item.IsEmpty())
{
continue;
|