summaryrefslogtreecommitdiffstats
path: root/src/BlockEntities/JukeboxEntity.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/BlockEntities/JukeboxEntity.cpp')
-rw-r--r--src/BlockEntities/JukeboxEntity.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/BlockEntities/JukeboxEntity.cpp b/src/BlockEntities/JukeboxEntity.cpp
index c8d08f327..6f25c4a36 100644
--- a/src/BlockEntities/JukeboxEntity.cpp
+++ b/src/BlockEntities/JukeboxEntity.cpp
@@ -70,6 +70,8 @@ bool cJukeboxEntity::UsedBy(cPlayer * a_Player)
const cItem & HeldItem = a_Player->GetEquippedItem();
if (PlayRecord(HeldItem.m_ItemType) && !a_Player->IsGameModeCreative())
{
+ a_Player->GetStatManager().AddValue(Statistic::PlayRecord);
+
a_Player->GetInventory().RemoveOneEquippedItem();
return true;
}