mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-07-13 05:15:13 +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{
|
public function getName() : string{
|
||||||
return $this->levelData["LevelName"];
|
return (string) $this->levelData["LevelName"];
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getTime(){
|
public function getTime(){
|
||||||
|
@ -273,7 +273,7 @@ class McRegion extends BaseLevelProvider{
|
|||||||
}
|
}
|
||||||
|
|
||||||
public function getGenerator() : string{
|
public function getGenerator() : string{
|
||||||
return $this->levelData["generatorName"];
|
return (string) $this->levelData["generatorName"];
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getGeneratorOptions() : array{
|
public function getGeneratorOptions() : array{
|
||||||
@ -332,8 +332,10 @@ class McRegion extends BaseLevelProvider{
|
|||||||
}
|
}
|
||||||
$regionX = $regionZ = null;
|
$regionX = $regionZ = null;
|
||||||
self::getRegionIndex($chunkX, $chunkZ, $regionX, $regionZ);
|
self::getRegionIndex($chunkX, $chunkZ, $regionX, $regionZ);
|
||||||
|
/** @noinspection PhpStrictTypeCheckingInspection */
|
||||||
$this->loadRegion($regionX, $regionZ);
|
$this->loadRegion($regionX, $regionZ);
|
||||||
$this->level->timings->syncChunkLoadDataTimer->startTiming();
|
$this->level->timings->syncChunkLoadDataTimer->startTiming();
|
||||||
|
/** @noinspection PhpStrictTypeCheckingInspection */
|
||||||
$chunk = $this->getRegion($regionX, $regionZ)->readChunk($chunkX - $regionX * 32, $chunkZ - $regionZ * 32);
|
$chunk = $this->getRegion($regionX, $regionZ)->readChunk($chunkX - $regionX * 32, $chunkZ - $regionZ * 32);
|
||||||
if($chunk === null and $create){
|
if($chunk === null and $create){
|
||||||
$chunk = $this->getEmptyChunk($chunkX, $chunkZ);
|
$chunk = $this->getEmptyChunk($chunkX, $chunkZ);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user