summaryrefslogtreecommitdiffstats
path: root/source/Item.cpp
diff options
context:
space:
mode:
authormadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2013-04-10 23:40:30 +0200
committermadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2013-04-10 23:40:30 +0200
commitdc878898f36473c4df54457d2738562df4dec908 (patch)
tree99e4daa3c37c8abe327605d61dd0081acb577d34 /source/Item.cpp
parentFixed gcc build (diff)
downloadcuberite-dc878898f36473c4df54457d2738562df4dec908.tar
cuberite-dc878898f36473c4df54457d2738562df4dec908.tar.gz
cuberite-dc878898f36473c4df54457d2738562df4dec908.tar.bz2
cuberite-dc878898f36473c4df54457d2738562df4dec908.tar.lz
cuberite-dc878898f36473c4df54457d2738562df4dec908.tar.xz
cuberite-dc878898f36473c4df54457d2738562df4dec908.tar.zst
cuberite-dc878898f36473c4df54457d2738562df4dec908.zip
Diffstat (limited to '')
-rw-r--r--source/Item.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/source/Item.cpp b/source/Item.cpp
index b96500a30..15f011c13 100644
--- a/source/Item.cpp
+++ b/source/Item.cpp
@@ -8,6 +8,17 @@
+cItem cItem::CopyOne(void) const
+{
+ cItem res(*this);
+ res.m_ItemCount = 1;
+ return res;
+}
+
+
+
+
+
bool cItem::IsStackableWith(const cItem & a_OtherStack)
{
if (a_OtherStack.m_ItemType != m_ItemType)