mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-10-17 19:50:18 +00:00
Removed the need for subchunks to know their Y coordinates
This commit is contained in:
@@ -914,9 +914,8 @@ class Level implements ChunkManager, Metadatable{
|
||||
}
|
||||
|
||||
|
||||
foreach($chunk->getSubChunks() as $subChunk){
|
||||
foreach($chunk->getSubChunks() as $Y => $subChunk){
|
||||
if(!$subChunk->isEmpty()){
|
||||
$Y = $subChunk->getY();
|
||||
$k = mt_rand(0, 0x7fffffff);
|
||||
for($i = 0; $i < 3; ++$i, $k >>= 10){
|
||||
$x = $k & 0x0f;
|
||||
|
Reference in New Issue
Block a user