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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user