summaryrefslogtreecommitdiffstats
path: root/src/WorldStorage
diff options
context:
space:
mode:
authorHowaner <franzi.moos@googlemail.com>2014-05-07 20:43:37 +0200
committerHowaner <franzi.moos@googlemail.com>2014-05-07 20:43:37 +0200
commitfbb6404cc8793f5caef374e1eda243fa2d159eb5 (patch)
tree447e21fdc8b384721d36881d06160b0dfe2c43ab /src/WorldStorage
parentWhere is the problem with clang? (diff)
downloadcuberite-fbb6404cc8793f5caef374e1eda243fa2d159eb5.tar
cuberite-fbb6404cc8793f5caef374e1eda243fa2d159eb5.tar.gz
cuberite-fbb6404cc8793f5caef374e1eda243fa2d159eb5.tar.bz2
cuberite-fbb6404cc8793f5caef374e1eda243fa2d159eb5.tar.lz
cuberite-fbb6404cc8793f5caef374e1eda243fa2d159eb5.tar.xz
cuberite-fbb6404cc8793f5caef374e1eda243fa2d159eb5.tar.zst
cuberite-fbb6404cc8793f5caef374e1eda243fa2d159eb5.zip
Diffstat (limited to '')
-rw-r--r--src/WorldStorage/NBTChunkSerializer.cpp2
-rw-r--r--src/WorldStorage/WSSAnvil.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/WorldStorage/NBTChunkSerializer.cpp b/src/WorldStorage/NBTChunkSerializer.cpp
index b696a8f69..6b317663a 100644
--- a/src/WorldStorage/NBTChunkSerializer.cpp
+++ b/src/WorldStorage/NBTChunkSerializer.cpp
@@ -108,7 +108,7 @@ void cNBTChunkSerializer::AddItem(const cItem & a_Item, int a_Slot, const AStrin
m_Writer.BeginCompound("tag");
if (a_Item.m_RepairCost > 0)
{
- m_Writer.AddInt("RepairCost", (Int32)a_Item.m_RepairCost);
+ m_Writer.AddInt("RepairCost", a_Item.m_RepairCost);
}
if ((a_Item.m_CustomName != "") || (a_Item.m_Lore != ""))
diff --git a/src/WorldStorage/WSSAnvil.cpp b/src/WorldStorage/WSSAnvil.cpp
index b1c6238ab..875093910 100644
--- a/src/WorldStorage/WSSAnvil.cpp
+++ b/src/WorldStorage/WSSAnvil.cpp
@@ -668,7 +668,7 @@ bool cWSSAnvil::LoadItemFromNBT(cItem & a_Item, const cParsedNBT & a_NBT, int a_
int RepairCost = a_NBT.FindChildByName(TagTag, "RepairCost");
if ((RepairCost > 0) && (a_NBT.GetType(RepairCost) == TAG_Int))
{
- a_Item.m_RepairCost = (UInt16)a_NBT.GetInt(RepairCost);
+ a_Item.m_RepairCost = a_NBT.GetInt(RepairCost);
}
// Load display name: