mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-10-19 04:15:04 +00:00
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:
@@ -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();
|
||||
|
Reference in New Issue
Block a user