From 7dd88765156014b61ff987e4aeda3d81aafc87ef Mon Sep 17 00:00:00 2001 From: "Dylan K. Taylor" Date: Thu, 14 Jul 2022 00:23:12 +0100 Subject: [PATCH] TNT: remove the old unreliable way of ignition on burning arrow collide --- src/block/TNT.php | 14 -------------- 1 file changed, 14 deletions(-) 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());