diff options
author | Tiger Wang <ziwei.tiger@hotmail.co.uk> | 2014-06-30 20:15:10 +0200 |
---|---|---|
committer | Tiger Wang <ziwei.tiger@hotmail.co.uk> | 2014-06-30 20:15:10 +0200 |
commit | b94fef3089003b6b8958716cc8d12ffa03b5a779 (patch) | |
tree | cb1c486d74321eb034513212569ec6b936cf4420 /src/WorldStorage/WSSAnvil.cpp | |
parent | Removed bad comment (diff) | |
download | cuberite-b94fef3089003b6b8958716cc8d12ffa03b5a779.tar cuberite-b94fef3089003b6b8958716cc8d12ffa03b5a779.tar.gz cuberite-b94fef3089003b6b8958716cc8d12ffa03b5a779.tar.bz2 cuberite-b94fef3089003b6b8958716cc8d12ffa03b5a779.tar.lz cuberite-b94fef3089003b6b8958716cc8d12ffa03b5a779.tar.xz cuberite-b94fef3089003b6b8958716cc8d12ffa03b5a779.tar.zst cuberite-b94fef3089003b6b8958716cc8d12ffa03b5a779.zip |
Diffstat (limited to '')
-rw-r--r-- | src/WorldStorage/WSSAnvil.cpp | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/src/WorldStorage/WSSAnvil.cpp b/src/WorldStorage/WSSAnvil.cpp index e6170f8b7..9870c144a 100644 --- a/src/WorldStorage/WSSAnvil.cpp +++ b/src/WorldStorage/WSSAnvil.cpp @@ -16,7 +16,6 @@ #include "../StringCompression.h" #include "../BlockEntities/ChestEntity.h" -#include "../BlockEntities/EnderChestEntity.h" #include "../BlockEntities/CommandBlockEntity.h" #include "../BlockEntities/DispenserEntity.h" #include "../BlockEntities/DropperEntity.h" @@ -585,10 +584,6 @@ void cWSSAnvil::LoadBlockEntitiesFromNBT(cBlockEntityList & a_BlockEntities, con { LoadChestFromNBT(a_BlockEntities, a_NBT, Child); } - else if (strncmp(a_NBT.GetData(sID), "EnderChest", a_NBT.GetDataLength(sID)) == 0) - { - - } else if (strncmp(a_NBT.GetData(sID), "Control", a_NBT.GetDataLength(sID)) == 0) { LoadCommandBlockFromNBT(a_BlockEntities, a_NBT, Child); @@ -767,22 +762,6 @@ void cWSSAnvil::LoadChestFromNBT(cBlockEntityList & a_BlockEntities, const cPars -void cWSSAnvil::LoadEnderChestFromNBT(cBlockEntityList & a_BlockEntities, const cParsedNBT & a_NBT, int a_TagIdx) -{ - ASSERT(a_NBT.GetType(a_TagIdx) == TAG_Compound); - int x, y, z; - if (!GetBlockEntityNBTPos(a_NBT, a_TagIdx, x, y, z)) - { - return; - } - std::auto_ptr<cEnderChestEntity> EnderChest(new cEnderChestEntity(x, y, z, m_World)); - a_BlockEntities.push_back(EnderChest.release()); -} - - - - - void cWSSAnvil::LoadDispenserFromNBT(cBlockEntityList & a_BlockEntities, const cParsedNBT & a_NBT, int a_TagIdx) { ASSERT(a_NBT.GetType(a_TagIdx) == TAG_Compound); |