From e032b8fe208a053441c9fbd377209740008cddb8 Mon Sep 17 00:00:00 2001 From: "Dylan K. Taylor" Date: Wed, 6 Oct 2021 22:20:27 +0100 Subject: [PATCH] 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. --- src/pocketmine/Server.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pocketmine/Server.php b/src/pocketmine/Server.php index 50df4e0bf..f097ad243 100644 --- a/src/pocketmine/Server.php +++ b/src/pocketmine/Server.php @@ -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); }