diff --git a/src/block/TNT.php b/src/block/TNT.php index a7d77a44e..1a749bdd2 100644 --- a/src/block/TNT.php +++ b/src/block/TNT.php @@ -25,10 +25,8 @@ namespace pocketmine\block; use pocketmine\data\runtime\RuntimeDataReader; use pocketmine\data\runtime\RuntimeDataWriter; -use pocketmine\entity\Entity; use pocketmine\entity\Location; use pocketmine\entity\object\PrimedTNT; -use pocketmine\entity\projectile\Arrow; use pocketmine\entity\projectile\Projectile; use pocketmine\item\Durable; use pocketmine\item\enchantment\VanillaEnchantments; @@ -103,18 +101,6 @@ class TNT extends Opaque{ return false; } - public function hasEntityCollision() : bool{ - return true; - } - - public function onEntityInside(Entity $entity) : bool{ - if($entity instanceof Arrow && $entity->isOnFire()){ - $this->ignite(); - return false; - } - return true; - } - public function ignite(int $fuse = 80) : void{ $this->position->getWorld()->setBlock($this->position, VanillaBlocks::AIR());