Fix untrack event not being called for all 'untracks' (#10110)

This commit is contained in:
Jake Potrebic
2024-01-03 20:57:49 -08:00
parent 9f932e42bd
commit 6c5ad653e5
2 changed files with 25 additions and 6 deletions

View File

@@ -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 {
+