mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-21 08:17:34 +00:00
Only Region file formats are allowed as parameters for RegionLoaders
This commit is contained in:
parent
b89a17ffe2
commit
5a12f40074
@ -25,7 +25,6 @@ namespace pocketmine\level\format\io\region;
|
||||
|
||||
use pocketmine\level\format\Chunk;
|
||||
use pocketmine\level\format\io\ChunkException;
|
||||
use pocketmine\level\format\io\LevelProvider;
|
||||
use pocketmine\utils\Binary;
|
||||
use pocketmine\utils\MainLogger;
|
||||
|
||||
@ -41,13 +40,13 @@ class RegionLoader{
|
||||
protected $filePath;
|
||||
protected $filePointer;
|
||||
protected $lastSector;
|
||||
/** @var LevelProvider */
|
||||
/** @var McRegion */
|
||||
protected $levelProvider;
|
||||
protected $locationTable = [];
|
||||
|
||||
public $lastUsed;
|
||||
|
||||
public function __construct(LevelProvider $level, int $regionX, int $regionZ, string $fileExtension = McRegion::REGION_FILE_EXTENSION){
|
||||
public function __construct(McRegion $level, int $regionX, int $regionZ, string $fileExtension = McRegion::REGION_FILE_EXTENSION){
|
||||
$this->x = $regionX;
|
||||
$this->z = $regionZ;
|
||||
$this->levelProvider = $level;
|
||||
|
Loading…
x
Reference in New Issue
Block a user