summaryrefslogtreecommitdiffstats
path: root/source/DispenserEntity.cpp
diff options
context:
space:
mode:
authormadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2013-04-01 22:56:25 +0200
committermadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2013-04-01 22:56:25 +0200
commit578560d2132188279e4b0930212edd915bc90008 (patch)
tree2519ecc38e0124bd58916b409f9222ee410c7e5e /source/DispenserEntity.cpp
parentHotfix for FS #347. (diff)
downloadcuberite-578560d2132188279e4b0930212edd915bc90008.tar
cuberite-578560d2132188279e4b0930212edd915bc90008.tar.gz
cuberite-578560d2132188279e4b0930212edd915bc90008.tar.bz2
cuberite-578560d2132188279e4b0930212edd915bc90008.tar.lz
cuberite-578560d2132188279e4b0930212edd915bc90008.tar.xz
cuberite-578560d2132188279e4b0930212edd915bc90008.tar.zst
cuberite-578560d2132188279e4b0930212edd915bc90008.zip
Diffstat (limited to 'source/DispenserEntity.cpp')
-rw-r--r--source/DispenserEntity.cpp31
1 files changed, 0 insertions, 31 deletions
diff --git a/source/DispenserEntity.cpp b/source/DispenserEntity.cpp
index 3ace4a1cf..5b0af8e42 100644
--- a/source/DispenserEntity.cpp
+++ b/source/DispenserEntity.cpp
@@ -261,37 +261,6 @@ void cDispenserEntity::SetSlot(int a_Slot, const cItem & a_Item)
-#define READ(File, Var) \
- if (File.Read(&Var, sizeof(Var)) != sizeof(Var)) \
- { \
- LOGERROR("ERROR READING cDispenserEntity %s FROM FILE (line %d)", #Var, __LINE__); \
- return false; \
- }
-
-bool cDispenserEntity::LoadFromFile(cFile & f)
-{
- READ(f, m_PosX);
- READ(f, m_PosY);
- READ(f, m_PosZ);
-
- unsigned int NumSlots = 0;
- READ(f, NumSlots);
- m_Items = new cItem[ NumSlots ];
- for(unsigned int i = 0; i < NumSlots; i++)
- {
- cItem & Item = m_Items[i];
- READ(f, Item.m_ItemType);
- READ(f, Item.m_ItemCount);
- READ(f, Item.m_ItemDamage);
- }
-
- return true;
-}
-
-
-
-
-
bool cDispenserEntity::LoadFromJson( const Json::Value& a_Value )
{
m_PosX = a_Value.get("x", 0).asInt();