summaryrefslogtreecommitdiffstats
path: root/src/UI/SlotArea.cpp
diff options
context:
space:
mode:
authordaniel0916 <theschokolps@gmail.com>2014-04-15 21:43:52 +0200
committerdaniel0916 <theschokolps@gmail.com>2014-04-15 21:43:52 +0200
commit36f747d6746b32c4352354933b25ae7ead6f1b7f (patch)
tree4e41177e8458bf73795fd93590f9f9f77a2cc575 /src/UI/SlotArea.cpp
parentAdd more checks to cSlotAreaEnchanting (diff)
downloadcuberite-36f747d6746b32c4352354933b25ae7ead6f1b7f.tar
cuberite-36f747d6746b32c4352354933b25ae7ead6f1b7f.tar.gz
cuberite-36f747d6746b32c4352354933b25ae7ead6f1b7f.tar.bz2
cuberite-36f747d6746b32c4352354933b25ae7ead6f1b7f.tar.lz
cuberite-36f747d6746b32c4352354933b25ae7ead6f1b7f.tar.xz
cuberite-36f747d6746b32c4352354933b25ae7ead6f1b7f.tar.zst
cuberite-36f747d6746b32c4352354933b25ae7ead6f1b7f.zip
Diffstat (limited to 'src/UI/SlotArea.cpp')
-rw-r--r--src/UI/SlotArea.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/UI/SlotArea.cpp b/src/UI/SlotArea.cpp
index 46ed493d8..d8d02f458 100644
--- a/src/UI/SlotArea.cpp
+++ b/src/UI/SlotArea.cpp
@@ -800,7 +800,7 @@ void cSlotAreaEnchanting::UpdateResult(cPlayer & a_Player)
m_ParentWindow.SetProperty(1, 0, a_Player);
m_ParentWindow.SetProperty(2, 0, a_Player);
}
- else if (cItem::IsEnchantable(Item.m_ItemType) && Item.m_Enchantments.IsEmpty())
+ else if (cItem::IsEnchantable(Item.m_ItemType) || Item.m_ItemType == E_ITEM_BOOK && Item.m_Enchantments.IsEmpty())
{
int Bookshelves = GetBookshelvesCount(a_Player.GetWorld());