mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-31 00:20:44 +01:00
2786ee1e8f
Adds a missing fishing state when the fish is lured and fires an event for it. Also adds a way to control the fish swimming time towards the bobber.
24 lines
1,013 B
Diff
24 lines
1,013 B
Diff
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
From: SoSeDiK <mrsosedik@gmail.com>
|
|
Date: Wed, 1 May 2024 07:44:50 +0300
|
|
Subject: [PATCH] Add missing fishing event state
|
|
|
|
|
|
diff --git a/src/main/java/org/bukkit/event/player/PlayerFishEvent.java b/src/main/java/org/bukkit/event/player/PlayerFishEvent.java
|
|
index 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000 100644
|
|
--- a/src/main/java/org/bukkit/event/player/PlayerFishEvent.java
|
|
+++ b/src/main/java/org/bukkit/event/player/PlayerFishEvent.java
|
|
@@ -0,0 +0,0 @@ public class PlayerFishEvent extends PlayerEvent implements Cancellable {
|
|
* in.
|
|
*/
|
|
BITE
|
|
+ // Paper start - Add missing fishing event state
|
|
+ ,
|
|
+ /**
|
|
+ * Called when a bobber was lured, and is now waiting to be hooked
|
|
+ * (when a "fish" starts to swim toward the bobber to bite it).
|
|
+ */
|
|
+ LURED,
|
|
+ // Paper end - Add missing fishing event state
|
|
}
|
|
}
|