diff options
author | madmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2013-04-10 23:40:30 +0200 |
---|---|---|
committer | madmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2013-04-10 23:40:30 +0200 |
commit | dc878898f36473c4df54457d2738562df4dec908 (patch) | |
tree | 99e4daa3c37c8abe327605d61dd0081acb577d34 /source/WorldStorage/NBTChunkSerializer.cpp | |
parent | Fixed gcc build (diff) | |
download | cuberite-dc878898f36473c4df54457d2738562df4dec908.tar cuberite-dc878898f36473c4df54457d2738562df4dec908.tar.gz cuberite-dc878898f36473c4df54457d2738562df4dec908.tar.bz2 cuberite-dc878898f36473c4df54457d2738562df4dec908.tar.lz cuberite-dc878898f36473c4df54457d2738562df4dec908.tar.xz cuberite-dc878898f36473c4df54457d2738562df4dec908.tar.zst cuberite-dc878898f36473c4df54457d2738562df4dec908.zip |
Diffstat (limited to '')
-rw-r--r-- | source/WorldStorage/NBTChunkSerializer.cpp | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/source/WorldStorage/NBTChunkSerializer.cpp b/source/WorldStorage/NBTChunkSerializer.cpp index cf53e4434..02b1012d8 100644 --- a/source/WorldStorage/NBTChunkSerializer.cpp +++ b/source/WorldStorage/NBTChunkSerializer.cpp @@ -123,15 +123,7 @@ void cNBTChunkSerializer::AddDispenserEntity(cDispenserEntity * a_Entity) m_Writer.BeginCompound("");
AddBasicTileEntity(a_Entity, "Trap");
m_Writer.BeginList("Items", TAG_Compound);
- for (int i = 0; i < 9; i++)
- {
- const cItem * Item = a_Entity->GetSlot(i);
- if ((Item == NULL) || Item->IsEmpty())
- {
- continue;
- }
- AddItem(*Item, i);
- } // for i - contents[]
+ AddItemGrid(a_Entity->GetContents());
m_Writer.EndList();
m_Writer.EndCompound();
}
|