ChunkManager: Remove getBlockIdAt()/setBlockIdAt()/getBlockDataAt()/setBlockDataAt(), add getBlockAt() and setBlockAt()

This commit is contained in:
Dylan K. Taylor
2018-12-04 22:27:00 +00:00
parent 8dd2ea22b8
commit cd5b81bdb9
15 changed files with 69 additions and 127 deletions

View File

@ -98,8 +98,7 @@ class Farmland extends Transparent{
for($y = $start->y; $y <= $end->y; ++$y){
for($z = $start->z; $z <= $end->z; ++$z){
for($x = $start->x; $x <= $end->x; ++$x){
$id = $this->level->getBlockIdAt($x, $y, $z);
if($id === Block::STILL_WATER or $id === Block::FLOWING_WATER){
if($this->level->getBlockAt($x, $y, $z) instanceof Water){
return true;
}
}