From 75e469c380c37de4bf4195479ee0a30651f82f6d Mon Sep 17 00:00:00 2001 From: "Dylan K. Taylor" Date: Wed, 22 Nov 2017 14:26:55 +0000 Subject: [PATCH] Fixed bad parameter names due to old code additions in Block->place() --- src/pocketmine/block/EnderChest.php | 2 +- src/pocketmine/block/StandingBanner.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pocketmine/block/EnderChest.php b/src/pocketmine/block/EnderChest.php index 36c0f6dd0..8e49882fb 100644 --- a/src/pocketmine/block/EnderChest.php +++ b/src/pocketmine/block/EnderChest.php @@ -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, diff --git a/src/pocketmine/block/StandingBanner.php b/src/pocketmine/block/StandingBanner.php index e6af88995..ee25c8be3 100644 --- a/src/pocketmine/block/StandingBanner.php +++ b/src/pocketmine/block/StandingBanner.php @@ -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;