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:
@@ -145,7 +145,7 @@ bool cBrewingstandEntity::Tick(std::chrono::milliseconds a_Dt, cChunk & a_Chunk)
|
||||
|
||||
bool cBrewingstandEntity::UsedBy(cPlayer * a_Player)
|
||||
{
|
||||
a_Player->GetStatManager().AddValue(Statistic::InteractWithBrewingstand);
|
||||
a_Player->GetStatistics().Custom[CustomStatistic::InteractWithBrewingstand]++;
|
||||
|
||||
cWindow * Window = GetWindow();
|
||||
if (Window == nullptr)
|
||||
|
||||
Reference in New Issue
Block a user