diff options
Diffstat (limited to '')
-rw-r--r-- | src/BlockEntities/DropSpenserEntity.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/BlockEntities/DropSpenserEntity.cpp b/src/BlockEntities/DropSpenserEntity.cpp index 2b048bce2..97a67ff60 100644 --- a/src/BlockEntities/DropSpenserEntity.cpp +++ b/src/BlockEntities/DropSpenserEntity.cpp @@ -153,6 +153,15 @@ void cDropSpenserEntity::SendTo(cClientHandle & a_Client) bool cDropSpenserEntity::UsedBy(cPlayer * a_Player) { + if (m_BlockType == E_BLOCK_DISPENSER) + { + a_Player->GetStatManager().AddValue(Statistic::InspectDispenser); + } + else // E_BLOCK_DROPPER + { + a_Player->GetStatManager().AddValue(Statistic::InspectDropper); + } + cWindow * Window = GetWindow(); if (Window == nullptr) { |