From 7267f1a520630c8d1aa54c6a46fc2b01493fa151 Mon Sep 17 00:00:00 2001 From: "Dylan K. Taylor" Date: Mon, 9 Oct 2017 10:37:19 +0100 Subject: [PATCH] Fixed some usages of Item constants for Blocks only cosmetic change --- src/pocketmine/level/Level.php | 4 ++-- src/pocketmine/tile/Furnace.php | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/pocketmine/level/Level.php b/src/pocketmine/level/Level.php index 8b0d436b7..4aa16f4eb 100644 --- a/src/pocketmine/level/Level.php +++ b/src/pocketmine/level/Level.php @@ -1665,7 +1665,7 @@ class Level implements ChunkManager, Metadatable{ } $above = $this->getBlock(new Vector3($target->x, $target->y + 1, $target->z)); - if($above->getId() === Item::FIRE){ + if($above->getId() === Block::FIRE){ //TODO: this should be done in Fire's onUpdate(), not with this hack $this->setBlock($above, BlockFactory::get(Block::AIR), true); } @@ -1730,7 +1730,7 @@ class Level implements ChunkManager, Metadatable{ return false; } - if($blockClicked->getId() === Item::AIR){ + if($blockClicked->getId() === Block::AIR){ return false; } diff --git a/src/pocketmine/tile/Furnace.php b/src/pocketmine/tile/Furnace.php index 54725edda..91ba9cc37 100644 --- a/src/pocketmine/tile/Furnace.php +++ b/src/pocketmine/tile/Furnace.php @@ -196,7 +196,7 @@ class Furnace extends Spawnable implements InventoryHolder, Container, Nameable{ $this->namedtag->MaxTime->setValue($ev->getBurnTime()); $this->namedtag->BurnTime->setValue($ev->getBurnTime()); $this->namedtag->BurnTicks->setValue(0); - if($this->getBlock()->getId() === Item::FURNACE){ + if($this->getBlock()->getId() === Block::FURNACE){ $this->getLevel()->setBlock($this, BlockFactory::get(Block::BURNING_FURNACE, $this->getBlock()->getDamage()), true); } @@ -253,7 +253,7 @@ class Furnace extends Spawnable implements InventoryHolder, Container, Nameable{ } $ret = true; }else{ - if($this->getBlock()->getId() === Item::BURNING_FURNACE){ + if($this->getBlock()->getId() === Block::BURNING_FURNACE){ $this->getLevel()->setBlock($this, BlockFactory::get(Block::FURNACE, $this->getBlock()->getDamage()), true); } $this->namedtag->BurnTime->setValue(0);