This commit is contained in:
Shoghi Cervantes
2014-06-23 23:24:27 +02:00
parent df68853c76
commit a4593d4668
2 changed files with 6 additions and 6 deletions

View File

@ -210,7 +210,7 @@ abstract class BaseChunk implements Chunk{
}
public function getHighestBlockAt($x, $z){
for($Y = self::SECTION_COUNT; $Y >= 0; --$Y){
for($Y = self::SECTION_COUNT - 1; $Y >= 0; --$Y){
if(!$this->isSectionEmpty($Y)){
$column = $this->sections[$Y]->getBlockIdColumn($x, $z);
for($y = 15; $y >= 0; --$y){