Shut PhpStorm up

This commit is contained in:
Dylan K. Taylor 2017-01-11 10:11:13 +00:00
parent 8f797442b3
commit 3bbf2c245a
2 changed files with 4 additions and 2 deletions

View File

@ -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(){

View File

@ -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);