Add more statistic tracking (#4837)
+ Added possible 1.8 stats + Added stat tracking for 1.8.2 + Added stat tracking for 1.9 + Added the breed cow achievement Co-authored-by: 12xx12 <12xx12100@gmail.com>
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user