aboutsummaryrefslogtreecommitdiffhomepage
path: root/patches/server/0516-Expose-Tracked-Players.patch
diff options
context:
space:
mode:
Diffstat (limited to 'patches/server/0516-Expose-Tracked-Players.patch')
-rw-r--r--patches/server/0516-Expose-Tracked-Players.patch9
1 files changed, 5 insertions, 4 deletions
diff --git a/patches/server/0516-Expose-Tracked-Players.patch b/patches/server/0516-Expose-Tracked-Players.patch
index e31f586e35..144143bd1f 100644
--- a/patches/server/0516-Expose-Tracked-Players.patch
+++ b/patches/server/0516-Expose-Tracked-Players.patch
@@ -5,14 +5,15 @@ Subject: [PATCH] Expose Tracked Players
diff --git a/src/main/java/org/bukkit/craftbukkit/entity/CraftEntity.java b/src/main/java/org/bukkit/craftbukkit/entity/CraftEntity.java
-index 103e8707ae9434c8e60059f75dafdd9e0fcc8b39..07158732dd6a5b7d622b7f2ea10ca87b50365b8a 100644
+index ef8f8b3f97405250ebe058c67c4099da66a8e773..524d3118663f5531e530dcdfa5da4ded2415468f 100644
--- a/src/main/java/org/bukkit/craftbukkit/entity/CraftEntity.java
+++ b/src/main/java/org/bukkit/craftbukkit/entity/CraftEntity.java
-@@ -1064,5 +1064,18 @@ public abstract class CraftEntity implements org.bukkit.entity.Entity {
- public boolean isTicking() {
+@@ -1042,4 +1042,19 @@ public abstract class CraftEntity implements org.bukkit.entity.Entity {
return getHandle().isTicking();
}
+ // Paper end - isTicking API
+
++ // Paper start - tracked players API
+ @Override
+ public Set<org.bukkit.entity.Player> getTrackedPlayers() {
+ if (this.entity.tracker == null) {
@@ -25,5 +26,5 @@ index 103e8707ae9434c8e60059f75dafdd9e0fcc8b39..07158732dd6a5b7d622b7f2ea10ca87b
+ }
+ return set;
+ }
- // Paper end
++ // Paper end - tracked players API
}