mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-06 09:56:06 +00:00
LevelDB: fixed more usages of CompoundTag ArrayAccess API
This commit is contained in:
@ -242,11 +242,11 @@ class LevelDB extends BaseLevelProvider{
|
||||
}
|
||||
|
||||
public function getGenerator() : string{
|
||||
return (string) $this->levelData["generatorName"];
|
||||
return $this->levelData->getString("generatorName", "");
|
||||
}
|
||||
|
||||
public function getGeneratorOptions() : array{
|
||||
return ["preset" => $this->levelData["generatorOptions"]];
|
||||
return ["preset" => $this->levelData->getString("generatorOptions", "")];
|
||||
}
|
||||
|
||||
public function getDifficulty() : int{
|
||||
|
Reference in New Issue
Block a user