Skip to content
This repository was archived by the owner on Feb 3, 2023. It is now read-only.

Commit ada6f9a

Browse files
committed
Fixed #170
1 parent 1059eef commit ada6f9a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/pocketmine/entity/projectile/FishingHook.php

+2
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,8 @@ public function __construct(Level $level, CompoundTag $nbt, ?Entity $owner = nul
9696
* @param RayTraceResult $hitResult
9797
*/
9898
public function onHitEntity(Entity $entityHit, RayTraceResult $hitResult) : void{
99+
$entityHit->attack(new EntityDamageByEntityEvent($this, $entityHit, EntityDamageEvent::CAUSE_ENTITY_ATTACK, 0));
100+
99101
$this->mountEntity($entityHit);
100102
}
101103

0 commit comments

Comments
 (0)