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