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

@ -33,8 +33,8 @@ class Position extends Vector3{
$this->level = $level;
}
public function getSide($side){
return new Position(parent::getSide($side), 0, 0, $this->level);
public function getSide($side, $step = 1){
return new Position(parent::getSide($side, $step), 0, 0, $this->level);
}
public function distance($x = 0, $y = 0, $z = 0){