mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-07-26 12:53:45 +00:00
GroundCover: drop useless variable in calculating startY
This commit is contained in:
parent
1bdc61dd5f
commit
812424a619
@ -47,13 +47,13 @@ class GroundCover extends Populator{
|
|||||||
}
|
}
|
||||||
|
|
||||||
$column = $chunk->getBlockIdColumn($x, $z);
|
$column = $chunk->getBlockIdColumn($x, $z);
|
||||||
$y = 127;
|
$startY = 127;
|
||||||
for(; $y > 0; --$y){
|
for(; $startY > 0; --$startY){
|
||||||
if($column[$y] !== "\x00" and !BlockFactory::get(ord($column[$y]))->isTransparent()){
|
if($column[$startY] !== "\x00" and !BlockFactory::get(ord($column[$startY]))->isTransparent()){
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
$startY = min(127, $y + $diffY);
|
$startY = min(127, $startY + $diffY);
|
||||||
$endY = $startY - count($cover);
|
$endY = $startY - count($cover);
|
||||||
for($y = $startY; $y > $endY and $y >= 0; --$y){
|
for($y = $startY; $y > $endY and $y >= 0; --$y){
|
||||||
$b = $cover[$startY - $y];
|
$b = $cover[$startY - $y];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user