mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-07-23 19:34:15 +00:00
McRegion: fix some missed ArrayAccess usages of CompoundTag
This commit is contained in:
parent
093cb5b39e
commit
f27b62027c
@ -260,11 +260,11 @@ class McRegion extends BaseLevelProvider{
|
|||||||
}
|
}
|
||||||
|
|
||||||
public function getGenerator() : string{
|
public function getGenerator() : string{
|
||||||
return (string) $this->levelData["generatorName"];
|
return $this->levelData->getString("generatorName", "DEFAULT");
|
||||||
}
|
}
|
||||||
|
|
||||||
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