summaryrefslogtreecommitdiffstats
path: root/src/BlockEntities/NoteEntity.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/BlockEntities/NoteEntity.cpp')
-rw-r--r--src/BlockEntities/NoteEntity.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/BlockEntities/NoteEntity.cpp b/src/BlockEntities/NoteEntity.cpp
index d56f45548..3e9958892 100644
--- a/src/BlockEntities/NoteEntity.cpp
+++ b/src/BlockEntities/NoteEntity.cpp
@@ -4,6 +4,7 @@
#include "NoteEntity.h"
#include "../World.h"
#include "json/value.h"
+#include "../Entities/Player.h"
@@ -33,7 +34,7 @@ void cNoteEntity::CopyFrom(const cBlockEntity & a_Src)
bool cNoteEntity::UsedBy(cPlayer * a_Player)
{
- UNUSED(a_Player);
+ a_Player->GetStatManager().AddValue(Statistic::TuneNoteblock);
IncrementNote();
MakeSound();
return true;