mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-08 02:42:58 +00:00
New Chunk objects / structure, Anvil region loader [WiP]
This commit is contained in:
@ -33,4 +33,9 @@ class Anvil implements LevelFormat{
|
||||
public static function isValid($path){
|
||||
return file_exists(realpath($path) . "region/");
|
||||
}
|
||||
|
||||
public static function getRegionIndex($chunkX, $chunkZ, &$x, &$z){
|
||||
$x = $chunkX >> 5;
|
||||
$z = $chunkZ >> 5;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user