Paintings cant be placed in air

This commit is contained in:
GameHerobrine 2022-07-12 16:45:30 +03:00
parent af79b29f26
commit ce25cfbbc0
4 changed files with 59 additions and 35 deletions

View file

@ -220,8 +220,8 @@ abstract class Block extends Position{
return $this->breakTime;
}
public function getSide($side){
$v = parent::getSide($side);
public function getSide($side, $step = 1){
$v = parent::getSide($side, $step);
if($this->level instanceof Level){
return $this->level->getBlock($v);
}