Server: fixed stats reporting checking a nonexistent pocketmine.yml property

this was originally worked around by 47f7af6739537af7a4d356a08aa00eb7feefd1ed. However, that commit was just duct tape, and I never bothered to investigate if the config was being checked somewhere else.
Here's to a years-old bug finally getting fixed.
This commit is contained in:
Dylan K. Taylor 2021-10-06 22:20:27 +01:00
parent a27c14c00c
commit e032b8fe20
No known key found for this signature in database
GPG Key ID: 8927471A91CAFD3D

View File

@ -1961,7 +1961,7 @@ class Server{
$this->network->blockAddress($entry->getName(), -1);
}
if((bool) $this->getProperty("settings.send-usage", true)){
if((bool) $this->getProperty("anonymous-statistics.enabled", true)){
$this->sendUsageTicker = 6000;
$this->sendUsage(SendUsageTask::TYPE_OPEN);
}