summaryrefslogtreecommitdiffstats
path: root/src/Item.h
diff options
context:
space:
mode:
authorHowaner <franzi.moos@googlemail.com>2014-09-02 20:17:31 +0200
committerHowaner <franzi.moos@googlemail.com>2014-09-02 20:17:31 +0200
commitc19b2befa88bfe5549a3630c997070d5e1d37941 (patch)
treeea87cb927f0448e2960dff6d1763777942500213 /src/Item.h
parentMerge branch 'master' into Inventory (diff)
downloadcuberite-c19b2befa88bfe5549a3630c997070d5e1d37941.tar
cuberite-c19b2befa88bfe5549a3630c997070d5e1d37941.tar.gz
cuberite-c19b2befa88bfe5549a3630c997070d5e1d37941.tar.bz2
cuberite-c19b2befa88bfe5549a3630c997070d5e1d37941.tar.lz
cuberite-c19b2befa88bfe5549a3630c997070d5e1d37941.tar.xz
cuberite-c19b2befa88bfe5549a3630c997070d5e1d37941.tar.zst
cuberite-c19b2befa88bfe5549a3630c997070d5e1d37941.zip
Diffstat (limited to 'src/Item.h')
-rw-r--r--src/Item.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Item.h b/src/Item.h
index e7fd67b9a..056b5eb8a 100644
--- a/src/Item.h
+++ b/src/Item.h
@@ -184,7 +184,8 @@ public:
void FromJson(const Json::Value & a_Value);
/** Returns true if the specified item type is enchantable.
- If WithBook is true, the function checks the enchantments with a book too. */
+ If WithBook is true, the function is used in the anvil inventory with book enchantments.
+ So it checks the "only book enchantments" too. Example: You can only enchant a hoe with a book. */
static bool IsEnchantable(short a_ItemType, bool a_WithBook = false); // tolua_export
/** Returns the enchantability of the item. When the item hasn't a enchantability, it will returns 0 */