From be557e69fa50842c3be5e1962eb84a167e25aace Mon Sep 17 00:00:00 2001 From: md_5 Date: Mon, 15 Apr 2019 20:42:51 +1000 Subject: [PATCH] SPIGOT-4700: Add PlayerFishEvent.State.REEL_IN --- nms-patches/EntityFishingHook.patch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nms-patches/EntityFishingHook.patch b/nms-patches/EntityFishingHook.patch index 7d8d7e4854..bc68d94241 100644 --- a/nms-patches/EntityFishingHook.patch +++ b/nms-patches/EntityFishingHook.patch @@ -105,7 +105,7 @@ } + // CraftBukkit start + if (i == 0) { -+ PlayerFishEvent playerFishEvent = new PlayerFishEvent((Player) this.owner.getBukkitEntity(), null, (FishHook) this.getBukkitEntity(), PlayerFishEvent.State.FAILED_ATTEMPT); ++ PlayerFishEvent playerFishEvent = new PlayerFishEvent((Player) this.owner.getBukkitEntity(), null, (FishHook) this.getBukkitEntity(), PlayerFishEvent.State.REEL_IN); + this.world.getServer().getPluginManager().callEvent(playerFishEvent); + if (playerFishEvent.isCancelled()) { + return 0;