Fixed bad parameter names due to old code additions in Block->place()

This commit is contained in:
Dylan K. Taylor 2017-11-22 14:26:55 +00:00
parent 686e1c4470
commit 75e469c380
2 changed files with 2 additions and 2 deletions

View File

@ -56,7 +56,7 @@ class EnderChest extends Chest{
return Tool::TYPE_PICKAXE;
}
public function place(Item $item, Block $blockReplace, Block $blockClicked, int $face, Vector3 $facePos, Player $player = null) : bool{
public function place(Item $item, Block $blockReplace, Block $blockClicked, int $face, Vector3 $clickVector, Player $player = null) : bool{
$faces = [
0 => 4,
1 => 2,

View File

@ -59,7 +59,7 @@ class StandingBanner extends Transparent{
return null;
}
public function place(Item $item, Block $blockReplace, Block $blockClicked, int $face, Vector3 $facePos, Player $player = null) : bool{
public function place(Item $item, Block $blockReplace, Block $blockClicked, int $face, Vector3 $clickVector, Player $player = null) : bool{
if($face !== Vector3::SIDE_DOWN){
if($face === Vector3::SIDE_UP and $player !== null){
$this->meta = floor((($player->yaw + 180) * 16 / 360) + 0.5) & 0x0f;