mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-06 09:56:06 +00:00
Region loaders don't need to know their own coordinates
This commit is contained in:
@ -39,10 +39,6 @@ class RegionLoader{
|
||||
|
||||
public static $COMPRESSION_LEVEL = 7;
|
||||
|
||||
/** @var int */
|
||||
protected $x;
|
||||
/** @var int */
|
||||
protected $z;
|
||||
/** @var string */
|
||||
protected $filePath;
|
||||
/** @var resource */
|
||||
@ -54,9 +50,7 @@ class RegionLoader{
|
||||
/** @var int */
|
||||
public $lastUsed = 0;
|
||||
|
||||
public function __construct(string $filePath, int $regionX, int $regionZ){
|
||||
$this->x = $regionX;
|
||||
$this->z = $regionZ;
|
||||
public function __construct(string $filePath){
|
||||
$this->filePath = $filePath;
|
||||
}
|
||||
|
||||
@ -340,14 +334,6 @@ class RegionLoader{
|
||||
$this->locationTable = array_fill(0, 1024, [0, 0, 0]);
|
||||
}
|
||||
|
||||
public function getX() : int{
|
||||
return $this->x;
|
||||
}
|
||||
|
||||
public function getZ() : int{
|
||||
return $this->z;
|
||||
}
|
||||
|
||||
public function getFilePath() : string{
|
||||
return $this->filePath;
|
||||
}
|
||||
|
Reference in New Issue
Block a user