Refactor Block & Tile: getPos() to getPosition() (#4395)

this also changes the name of the class property 'pos' to 'position' as well as Block->getPosOffset() to Block->getPositionOffset()
This commit is contained in:
SalmonDE
2021-08-23 15:01:32 +02:00
committed by GitHub
parent 22316976fa
commit 7fd712c1ff
93 changed files with 402 additions and 402 deletions

View File

@@ -51,7 +51,7 @@ class PaintingItem extends Item{
continue;
}
if(Painting::canFit($player->getWorld(), $blockReplace->getPos(), $face, true, $motive)){
if(Painting::canFit($player->getWorld(), $blockReplace->getPosition(), $face, true, $motive)){
if($currentTotalDimension > $totalDimension){
$totalDimension = $currentTotalDimension;
/*
@@ -73,8 +73,8 @@ class PaintingItem extends Item{
/** @var PaintingMotive $motive */
$motive = $motives[array_rand($motives)];
$replacePos = $blockReplace->getPos();
$clickedPos = $blockClicked->getPos();
$replacePos = $blockReplace->getPosition();
$clickedPos = $blockClicked->getPosition();
$entity = new Painting(Location::fromObject($replacePos, $replacePos->getWorld()), $clickedPos, $face, $motive);
$this->pop();