Refactor Level::chunkBlockHash() (makes no sense to put it here)

This commit is contained in:
Dylan K. Taylor
2017-01-01 01:04:27 +00:00
parent 736ec6edac
commit 0e10a149ef
2 changed files with 17 additions and 7 deletions

View File

@@ -268,10 +268,6 @@ class Level implements ChunkManager, Metadatable{
return PHP_INT_SIZE === 8 ? (($x & 0xFFFFFFF) << 36) | (($y & Level::Y_MASK) << 28) | ($z & 0xFFFFFFF) : $x . ":" . $y . ":" . $z;
}
public static function chunkBlockHash(int $x, int $y, int $z) : int{
return ($x << 12) | ($z << 8) | $y;
}
public static function getBlockXYZ($hash, &$x, &$y, &$z){
if(PHP_INT_SIZE === 8){
$x = $hash >> 36;