mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-06 17:59:48 +00:00
Level: rename getName() to getDisplayName()
This commit is contained in:
@ -37,7 +37,7 @@ class BlockMetadataStore extends MetadataStore{
|
||||
|
||||
private function disambiguate(Block $block, string $metadataKey) : string{
|
||||
if($block->getLevel() !== $this->owningLevel){
|
||||
throw new \InvalidStateException("Block does not belong to world " . $this->owningLevel->getName());
|
||||
throw new \InvalidStateException("Block does not belong to world " . $this->owningLevel->getDisplayName());
|
||||
}
|
||||
return $block->x . ":" . $block->y . ":" . $block->z . ":" . $metadataKey;
|
||||
}
|
||||
|
@ -30,7 +30,7 @@ use function strtolower;
|
||||
class LevelMetadataStore extends MetadataStore{
|
||||
|
||||
private function disambiguate(Level $level, string $metadataKey) : string{
|
||||
return strtolower($level->getName()) . ":" . $metadataKey;
|
||||
return strtolower($level->getFolderName()) . ":" . $metadataKey;
|
||||
}
|
||||
|
||||
public function getMetadata(Level $subject, string $metadataKey){
|
||||
|
Reference in New Issue
Block a user