mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-20 16:00:20 +00:00
Shut PhpStorm up
This commit is contained in:
parent
8f797442b3
commit
3bbf2c245a
@ -83,7 +83,7 @@ abstract class BaseLevelProvider implements LevelProvider{
|
||||
}
|
||||
|
||||
public function getName() : string{
|
||||
return $this->levelData["LevelName"];
|
||||
return (string) $this->levelData["LevelName"];
|
||||
}
|
||||
|
||||
public function getTime(){
|
||||
|
@ -273,7 +273,7 @@ class McRegion extends BaseLevelProvider{
|
||||
}
|
||||
|
||||
public function getGenerator() : string{
|
||||
return $this->levelData["generatorName"];
|
||||
return (string) $this->levelData["generatorName"];
|
||||
}
|
||||
|
||||
public function getGeneratorOptions() : array{
|
||||
@ -332,8 +332,10 @@ class McRegion extends BaseLevelProvider{
|
||||
}
|
||||
$regionX = $regionZ = null;
|
||||
self::getRegionIndex($chunkX, $chunkZ, $regionX, $regionZ);
|
||||
/** @noinspection PhpStrictTypeCheckingInspection */
|
||||
$this->loadRegion($regionX, $regionZ);
|
||||
$this->level->timings->syncChunkLoadDataTimer->startTiming();
|
||||
/** @noinspection PhpStrictTypeCheckingInspection */
|
||||
$chunk = $this->getRegion($regionX, $regionZ)->readChunk($chunkX - $regionX * 32, $chunkZ - $regionZ * 32);
|
||||
if($chunk === null and $create){
|
||||
$chunk = $this->getEmptyChunk($chunkX, $chunkZ);
|
||||
|
Loading…
x
Reference in New Issue
Block a user