mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-16 04:33:56 -07:00
Fix untrack event not being called for all 'untracks' (#10110)
This commit is contained in:
@@ -23,6 +23,9 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
||||
+ * Is called when a {@link Player} tracks an {@link Entity}.
|
||||
+ * <p>
|
||||
+ * If cancelled entity is not shown to the player and interaction in both directions is not possible.
|
||||
+ * <p>
|
||||
+ * Adding or removing entities from the world at the point in time this event is called is completely
|
||||
+ * unsupported and should be avoided.
|
||||
+ */
|
||||
+public class PlayerTrackEntityEvent extends PlayerEvent implements Cancellable {
|
||||
+
|
||||
@@ -82,6 +85,9 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
||||
+
|
||||
+/**
|
||||
+ * Is called when a {@link Player} untracks an {@link Entity}.
|
||||
+ * <p>
|
||||
+ * Adding or removing entities from the world at the point in time this event is called is completely
|
||||
+ * unsupported and should be avoided.
|
||||
+ */
|
||||
+public class PlayerUntrackEntityEvent extends PlayerEvent {
|
||||
+
|
||||
|
Reference in New Issue
Block a user