diff options
author | madmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2013-01-12 05:46:01 +0100 |
---|---|---|
committer | madmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2013-01-12 05:46:01 +0100 |
commit | 43e684071933adef93040e8d4b830d5c6b71cf9a (patch) | |
tree | 014e5300feb1cdbbb8f24e4e42594eeb841f0be2 /source/WorldStorage/WSSAnvil.cpp | |
parent | Fixed rclk in doublechests (diff) | |
download | cuberite-43e684071933adef93040e8d4b830d5c6b71cf9a.tar cuberite-43e684071933adef93040e8d4b830d5c6b71cf9a.tar.gz cuberite-43e684071933adef93040e8d4b830d5c6b71cf9a.tar.bz2 cuberite-43e684071933adef93040e8d4b830d5c6b71cf9a.tar.lz cuberite-43e684071933adef93040e8d4b830d5c6b71cf9a.tar.xz cuberite-43e684071933adef93040e8d4b830d5c6b71cf9a.tar.zst cuberite-43e684071933adef93040e8d4b830d5c6b71cf9a.zip |
Diffstat (limited to '')
-rw-r--r-- | source/WorldStorage/WSSAnvil.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/source/WorldStorage/WSSAnvil.cpp b/source/WorldStorage/WSSAnvil.cpp index 895386e4c..1204db282 100644 --- a/source/WorldStorage/WSSAnvil.cpp +++ b/source/WorldStorage/WSSAnvil.cpp @@ -108,8 +108,8 @@ protected: void AddItem(const cItem * a_Item, int a_Slot) { m_Writer.BeginCompound(""); - m_Writer.AddShort("id", (short)(a_Item->m_ItemID)); - m_Writer.AddShort("Damage", a_Item->m_ItemHealth); + m_Writer.AddShort("id", (short)(a_Item->m_ItemType)); + m_Writer.AddShort("Damage", a_Item->m_ItemDamage); m_Writer.AddByte ("Count", a_Item->m_ItemCount); m_Writer.AddByte ("Slot", (unsigned char)a_Slot); m_Writer.EndCompound(); @@ -804,13 +804,13 @@ void cWSSAnvil::LoadChestFromNBT(cBlockEntityList & a_BlockEntities, const cPars { continue; } - Item.m_ItemID = (ENUM_ITEM_ID)(a_NBT.GetShort(ID)); + Item.m_ItemType = (ENUM_ITEM_ID)(a_NBT.GetShort(ID)); int Damage = a_NBT.FindChildByName(Child, "Damage"); if ((Damage < 0) || (a_NBT.GetType(Damage) != TAG_Short)) { continue; } - Item.m_ItemHealth = a_NBT.GetShort(Damage); + Item.m_ItemDamage = a_NBT.GetShort(Damage); int Count = a_NBT.FindChildByName(Child, "Count"); if ((Count < 0) || (a_NBT.GetType(Count) != TAG_Byte)) { @@ -853,13 +853,13 @@ void cWSSAnvil::LoadDispenserFromNBT(cBlockEntityList & a_BlockEntities, const c { continue; } - Item.m_ItemID = (ENUM_ITEM_ID)(a_NBT.GetShort(ID)); + Item.m_ItemType = (ENUM_ITEM_ID)(a_NBT.GetShort(ID)); int Damage = a_NBT.FindChildByName(Child, "Damage"); if ((Damage < 0) || (a_NBT.GetType(Damage) != TAG_Short)) { continue; } - Item.m_ItemHealth = a_NBT.GetShort(Damage); + Item.m_ItemDamage = a_NBT.GetShort(Damage); int Count = a_NBT.FindChildByName(Child, "Count"); if ((Count < 0) || (a_NBT.GetType(Count) != TAG_Byte)) { @@ -902,13 +902,13 @@ void cWSSAnvil::LoadFurnaceFromNBT(cBlockEntityList & a_BlockEntities, const cPa { continue; } - Item.m_ItemID = (ENUM_ITEM_ID)(a_NBT.GetShort(ID)); + Item.m_ItemType = (ENUM_ITEM_ID)(a_NBT.GetShort(ID)); int Damage = a_NBT.FindChildByName(Child, "Damage"); if ((Damage < 0) || (a_NBT.GetType(Damage) != TAG_Short)) { continue; } - Item.m_ItemHealth = a_NBT.GetShort(Damage); + Item.m_ItemDamage = a_NBT.GetShort(Damage); int Count = a_NBT.FindChildByName(Child, "Count"); if ((Count < 0) || (a_NBT.GetType(Count) != TAG_Byte)) { |