From 43e684071933adef93040e8d4b830d5c6b71cf9a Mon Sep 17 00:00:00 2001 From: "madmaxoft@gmail.com" Date: Sat, 12 Jan 2013 04:46:01 +0000 Subject: Merged branch "branches/hooks" into "trunk". git-svn-id: http://mc-server.googlecode.com/svn/trunk@1139 0a769ca7-a7f5-676a-18bf-c427514a06d6 --- source/WorldStorage/WSSAnvil.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'source/WorldStorage') 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)) { -- cgit v1.2.3