summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2014-05-16 20:43:16 +0200
committerMattes D <github@xoft.cz>2014-05-16 20:43:16 +0200
commitb23baa6f3a68a84369ac0c89acb458a6b8ab55a2 (patch)
tree6c330bd13ef6957737272499f3bda8ac7bb8b825
parentMerge pull request #994 from Howaner/GlobalFixes (diff)
parentFixed anvil exp removing (diff)
downloadcuberite-b23baa6f3a68a84369ac0c89acb458a6b8ab55a2.tar
cuberite-b23baa6f3a68a84369ac0c89acb458a6b8ab55a2.tar.gz
cuberite-b23baa6f3a68a84369ac0c89acb458a6b8ab55a2.tar.bz2
cuberite-b23baa6f3a68a84369ac0c89acb458a6b8ab55a2.tar.lz
cuberite-b23baa6f3a68a84369ac0c89acb458a6b8ab55a2.tar.xz
cuberite-b23baa6f3a68a84369ac0c89acb458a6b8ab55a2.tar.zst
cuberite-b23baa6f3a68a84369ac0c89acb458a6b8ab55a2.zip
-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 788974f9c..8833a767a 100644
--- a/src/UI/SlotArea.cpp
+++ b/src/UI/SlotArea.cpp
@@ -760,7 +760,7 @@ void cSlotAreaAnvil::OnTakeResult(cPlayer & a_Player)
{
if (!a_Player.IsGameModeCreative())
{
- a_Player.DeltaExperience(cPlayer::XpForLevel(m_MaximumCost));
+ a_Player.DeltaExperience(-cPlayer::XpForLevel(m_MaximumCost));
}
SetSlot(0, a_Player, cItem());