summaryrefslogtreecommitdiffstats
path: root/src/UI
diff options
context:
space:
mode:
authortonibm19 <tonibm19@gmail.com>2014-05-16 19:33:57 +0200
committertonibm19 <tonibm19@gmail.com>2014-05-16 19:33:57 +0200
commit5724dcc2c199a5d7aec1bf60a160106770a2a63a (patch)
tree6c330bd13ef6957737272499f3bda8ac7bb8b825 /src/UI
parentMerge pull request #994 from Howaner/GlobalFixes (diff)
downloadcuberite-5724dcc2c199a5d7aec1bf60a160106770a2a63a.tar
cuberite-5724dcc2c199a5d7aec1bf60a160106770a2a63a.tar.gz
cuberite-5724dcc2c199a5d7aec1bf60a160106770a2a63a.tar.bz2
cuberite-5724dcc2c199a5d7aec1bf60a160106770a2a63a.tar.lz
cuberite-5724dcc2c199a5d7aec1bf60a160106770a2a63a.tar.xz
cuberite-5724dcc2c199a5d7aec1bf60a160106770a2a63a.tar.zst
cuberite-5724dcc2c199a5d7aec1bf60a160106770a2a63a.zip
Diffstat (limited to '')
-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());