diff options
author | madmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2013-04-10 21:52:03 +0200 |
---|---|---|
committer | madmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2013-04-10 21:52:03 +0200 |
commit | cc26f1646308a71ea78f0656efa670915e5e7345 (patch) | |
tree | 99b380f0d6466d4f67d792a6bd66b6dc87b80f02 /source/Item.cpp | |
parent | Fixed Windows Release build (diff) | |
download | cuberite-cc26f1646308a71ea78f0656efa670915e5e7345.tar cuberite-cc26f1646308a71ea78f0656efa670915e5e7345.tar.gz cuberite-cc26f1646308a71ea78f0656efa670915e5e7345.tar.bz2 cuberite-cc26f1646308a71ea78f0656efa670915e5e7345.tar.lz cuberite-cc26f1646308a71ea78f0656efa670915e5e7345.tar.xz cuberite-cc26f1646308a71ea78f0656efa670915e5e7345.tar.zst cuberite-cc26f1646308a71ea78f0656efa670915e5e7345.zip |
Diffstat (limited to 'source/Item.cpp')
-rw-r--r-- | source/Item.cpp | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/source/Item.cpp b/source/Item.cpp index 759b23042..b96500a30 100644 --- a/source/Item.cpp +++ b/source/Item.cpp @@ -8,6 +8,21 @@ +bool cItem::IsStackableWith(const cItem & a_OtherStack) +{ + if (a_OtherStack.m_ItemType != m_ItemType) + { + return false; + } + + // TODO: match enchantments etc. + return true; +} + + + + + void cItem::GetJson( Json::Value & a_OutValue ) const { a_OutValue["ID"] = m_ItemType; |