summaryrefslogtreecommitdiffstats
path: root/src/UI
diff options
context:
space:
mode:
authorHowaner <franzi.moos@googlemail.com>2014-05-05 15:49:56 +0200
committerHowaner <franzi.moos@googlemail.com>2014-05-05 17:34:44 +0200
commitf2617d06830c649c5d13d1daf4f3e70e7ee487b0 (patch)
tree072c49fd464c1d44e56ecfc00411cdfdc73495ff /src/UI
parentAdd doxycomments to cSlotAreaAnvil functions. (diff)
downloadcuberite-f2617d06830c649c5d13d1daf4f3e70e7ee487b0.tar
cuberite-f2617d06830c649c5d13d1daf4f3e70e7ee487b0.tar.gz
cuberite-f2617d06830c649c5d13d1daf4f3e70e7ee487b0.tar.bz2
cuberite-f2617d06830c649c5d13d1daf4f3e70e7ee487b0.tar.lz
cuberite-f2617d06830c649c5d13d1daf4f3e70e7ee487b0.tar.xz
cuberite-f2617d06830c649c5d13d1daf4f3e70e7ee487b0.tar.zst
cuberite-f2617d06830c649c5d13d1daf4f3e70e7ee487b0.zip
Diffstat (limited to '')
-rw-r--r--src/UI/SlotArea.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/UI/SlotArea.cpp b/src/UI/SlotArea.cpp
index 7b9f4e628..0f5e292d0 100644
--- a/src/UI/SlotArea.cpp
+++ b/src/UI/SlotArea.cpp
@@ -828,11 +828,11 @@ bool cSlotAreaAnvil::CanTakeResultItem(cPlayer & a_Player)
{
return (
(
- a_Player.IsGameModeCreative()
- || a_Player.GetXpLevel() >= m_MaximumCost
- )
- && !GetSlot(2, a_Player)->IsEmpty()
- && m_MaximumCost > 0
+ a_Player.IsGameModeCreative() || // Is the player in gamemode?
+ (a_Player.GetXpLevel() >= m_MaximumCost) // or the player have enough exp?
+ ) &&
+ (!GetSlot(2, a_Player)->IsEmpty()) && // Is a item in the result slot?
+ (m_MaximumCost > 0) // And: Is m_MaximumCost higher than 0?
);
}