From 0356716e8e7f1b9d8ca87645b577d0dcf505cfd0 Mon Sep 17 00:00:00 2001 From: "Dylan K. Taylor" Date: Wed, 3 Nov 2021 15:23:43 +0000 Subject: [PATCH] PopulationTask: do not expose internal fields as public this code dates back to pthreads v2, when visibility on Threaded object fields meant different things (wtf, krakjoe??) --- src/world/generator/PopulationTask.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/world/generator/PopulationTask.php b/src/world/generator/PopulationTask.php index 4ba21312f..a50f884fc 100644 --- a/src/world/generator/PopulationTask.php +++ b/src/world/generator/PopulationTask.php @@ -41,11 +41,11 @@ use function igbinary_unserialize; class PopulationTask extends AsyncTask{ private const TLS_KEY_ON_COMPLETION = "onCompletion"; - public int $worldId; + private int $worldId; private int $chunkX; private int $chunkZ; - public ?string $chunk; + private ?string $chunk; private string $adjacentChunks;