Added disconnect packet

This commit is contained in:
Shoghi Cervantes Pueyo
2012-12-18 18:16:27 +01:00
parent adbf56d754
commit 0b70b36ee1
2 changed files with 4 additions and 2 deletions

View File

@ -74,8 +74,6 @@ class ChunkParser{
}
private function getOffset($X, $Z, $sectors = 21){
//$info = $this->getOffsetPosition($X, $Z);
//return 4096 + (($info[1] * $info[0]) << 12) + (($info[2] * $data[0]) << 16);
return 0x1000 + (($Z * $sectors) << 12) + (($X * $sectors) << 16);
}