[SPIGOT-1931] PlayerFishEvent Cancel is Broken Created: 15/Mar/16  Updated: 15/Mar/16  Resolved: 15/Mar/16

Status: Resolved
Project: Spigot
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Minor
Reporter: Cayorion Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: 1.9, Entity, Fish, Fishing, FishingHook, Hook, PlayerFishEvent


 Description   

In 1.8 it was possible to cancel the PlayerFishEvent to block an entity from getting hooked. This does not seem to work in 1.9.

As an example Citizens had to implement this workaround:
https://github.com/CitizensDev/Citizens2/commit/ec917e1fd673b5288447ce1c00d60e56f5a18a8b
Since that workaround depends on NMS it is not feasible for all developers.

Immediately using Entity#remove() on the FishHook does not seem to help. Waiting one tick and then using Entity#remove() does not seem to help either and causes a broken hook experience where you can repeatedly click with your fishing rod and drag the entity around even without a visual hook or line to the entity.


Generated at Thu Apr 03 15:33:21 UTC 2025 using Jira 10.3.3#10030003-sha1:d220e3fefc8dfc6d47f522d3b9a20c1455e12b7b.