mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 11:39:43 +00:00
LevelAPI and pre-map r
This commit is contained in:
parent
801c2736ba
commit
063f44c330
8 changed files with 115 additions and 24 deletions
|
|
@ -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){
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue