summaryrefslogtreecommitdiffstats
path: root/src/Item.h
diff options
context:
space:
mode:
authorpeterbell10 <peterbell10@live.co.uk>2017-08-28 15:36:23 +0200
committerpeterbell10 <peterbell10@live.co.uk>2017-08-28 15:36:23 +0200
commit96ce8414175e600285f2d965844bb141c5a9cf5c (patch)
treeee815a1f4a84e69d8858e1957f063da63b76b41c /src/Item.h
parentcCuboid: restore default copy construct and assign. (diff)
downloadcuberite-96ce8414175e600285f2d965844bb141c5a9cf5c.tar
cuberite-96ce8414175e600285f2d965844bb141c5a9cf5c.tar.gz
cuberite-96ce8414175e600285f2d965844bb141c5a9cf5c.tar.bz2
cuberite-96ce8414175e600285f2d965844bb141c5a9cf5c.tar.lz
cuberite-96ce8414175e600285f2d965844bb141c5a9cf5c.tar.xz
cuberite-96ce8414175e600285f2d965844bb141c5a9cf5c.tar.zst
cuberite-96ce8414175e600285f2d965844bb141c5a9cf5c.zip
Diffstat (limited to 'src/Item.h')
-rw-r--r--src/Item.h14
1 files changed, 2 insertions, 12 deletions
diff --git a/src/Item.h b/src/Item.h
index 493061d93..35c4e4582 100644
--- a/src/Item.h
+++ b/src/Item.h
@@ -80,20 +80,10 @@ public:
// The constructor is disabled in code, because the compiler generates it anyway,
// but it needs to stay because ToLua needs to generate the binding for it
- #if 0
+ #ifdef TOLUA_EXPOSITION
/** Creates an exact copy of the item */
- cItem(const cItem & a_CopyFrom) :
- m_ItemType (a_CopyFrom.m_ItemType),
- m_ItemCount (a_CopyFrom.m_ItemCount),
- m_ItemDamage (a_CopyFrom.m_ItemDamage),
- m_Enchantments(a_CopyFrom.m_Enchantments),
- m_CustomName (a_CopyFrom.m_CustomName),
- m_Lore (a_CopyFrom.m_Lore),
- m_RepairCost (a_CopyFrom.m_RepairCost),
- m_FireworkItem(a_CopyFrom.m_FireworkItem)
- {
- }
+ cItem(const cItem & a_CopyFrom);
#endif