diff options
author | Howaner <franzi.moos@googlemail.com> | 2014-05-07 20:43:37 +0200 |
---|---|---|
committer | Howaner <franzi.moos@googlemail.com> | 2014-05-07 20:43:37 +0200 |
commit | fbb6404cc8793f5caef374e1eda243fa2d159eb5 (patch) | |
tree | 447e21fdc8b384721d36881d06160b0dfe2c43ab /src/Protocol | |
parent | Where is the problem with clang? (diff) | |
download | cuberite-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 'src/Protocol')
-rw-r--r-- | src/Protocol/Protocol17x.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Protocol/Protocol17x.cpp b/src/Protocol/Protocol17x.cpp index c4fb9d424..f6849122f 100644 --- a/src/Protocol/Protocol17x.cpp +++ b/src/Protocol/Protocol17x.cpp @@ -2282,7 +2282,7 @@ void cProtocol172::ParseItemMetadata(cItem & a_Item, const AString & a_Metadata) { if (TagName == "RepairCost") { - a_Item.m_RepairCost = (UInt16)NBT.GetInt(tag); + a_Item.m_RepairCost = NBT.GetInt(tag); } } default: LOGD("Unimplemented NBT data when parsing!"); break; @@ -2460,7 +2460,7 @@ void cProtocol172::cPacketizer::WriteItem(const cItem & a_Item) cFastNBTWriter Writer; if (a_Item.m_RepairCost != 0) { - Writer.AddInt("RepairCost", (Int32)a_Item.m_RepairCost); + Writer.AddInt("RepairCost", a_Item.m_RepairCost); } if (!a_Item.m_Enchantments.IsEmpty()) { |