mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-06 17:59:48 +00:00
LevelAPI and pre-map r
This commit is contained in:
@ -53,8 +53,9 @@ class ChunkParser{
|
||||
}
|
||||
|
||||
private function getOffset($X, $Z){
|
||||
$info = $this->getOffsetPosition($X, $Z);
|
||||
return 4096 + (($info[1] * $info[0]) << 12) + (($info[2] * $data[0]) << 16);
|
||||
//$info = $this->getOffsetPosition($X, $Z);
|
||||
//return 4096 + (($info[1] * $info[0]) << 12) + (($info[2] * $data[0]) << 16);
|
||||
return 4096 + (($X * 21) << 12) + (($Z * 21) << 16);
|
||||
}
|
||||
|
||||
public function getChunk($X, $Z, $header = true){
|
||||
|
Reference in New Issue
Block a user