From b1564805509ae636d7dd595943b6723c99f6f8e3 Mon Sep 17 00:00:00 2001 From: "Dylan K. Taylor" Date: Fri, 9 Sep 2016 10:41:35 +0100 Subject: [PATCH] Fix redstone ore glowing immediately when placed Do not update the block when placed --- src/pocketmine/block/RedstoneOre.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/pocketmine/block/RedstoneOre.php b/src/pocketmine/block/RedstoneOre.php index 91d60a9ea..a5a88a562 100644 --- a/src/pocketmine/block/RedstoneOre.php +++ b/src/pocketmine/block/RedstoneOre.php @@ -24,6 +24,7 @@ namespace pocketmine\block; use pocketmine\item\Item; use pocketmine\item\Tool; use pocketmine\level\Level; +use pocketmine\Player; class RedstoneOre extends Solid{ @@ -41,6 +42,10 @@ class RedstoneOre extends Solid{ return 3; } + public function place(Item $item, Block $block, Block $target, $face, $fx, $fy, $fz, Player $player = null){ + return $this->getLevel()->setBlock($this, $this, true, false); + } + public function onUpdate($type){ if($type === Level::BLOCK_UPDATE_NORMAL or $type === Level::BLOCK_UPDATE_TOUCH){ $this->getLevel()->setBlock($this, Block::get(Item::GLOWING_REDSTONE_ORE, $this->meta));