Level: do not use static:: to access levelIdCounter

the field is private.
This commit is contained in:
Dylan K. Taylor 2021-11-01 16:52:27 +00:00
parent 9f5c16bc46
commit d696ebcda3
No known key found for this signature in database
GPG Key ID: 8927471A91CAFD3D

View File

@ -370,7 +370,7 @@ class Level implements ChunkManager, Metadatable{
*/
public function __construct(Server $server, string $name, LevelProvider $provider){
$this->blockStates = BlockFactory::getBlockStatesArray();
$this->levelId = static::$levelIdCounter++;
$this->levelId = self::$levelIdCounter++;
$this->blockMetadata = new BlockMetadataStore($this);
$this->server = $server;
$this->autoSave = $server->getAutoSave();