1
0

Merge pull request #1002 from tonibm19/patch-1

Fixed anvil exp removing
This commit is contained in:
Mattes D 2014-05-16 20:43:16 +02:00
commit b23baa6f3a

View File

@ -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());