1
0

Add player statistics to API (#5193)

* Fixed issue #5166

Co-authored-by: 12xx12 <44411062+12xx12@users.noreply.github.com>
Co-authored-by: Tiger Wang <ziwei.tiger@outlook.com>
This commit is contained in:
nshah25
2021-05-03 16:07:09 -04:00
committed by GitHub
parent 626f8b2350
commit 8be1dd54bb
56 changed files with 1408 additions and 1002 deletions

View File

@@ -62,7 +62,7 @@ bool cEnderChestEntity::UsedBy(cPlayer * a_Player)
return false;
}
a_Player->GetStatManager().AddValue(Statistic::OpenEnderchest);
a_Player->GetStatistics().Custom[CustomStatistic::OpenEnderchest]++;
// If the window is not created, open it anew:
cWindow * Window = GetWindow();