diff options
author | Nassim Jahnke <[email protected]> | 2023-12-06 20:46:49 +0100 |
---|---|---|
committer | Nassim Jahnke <[email protected]> | 2023-12-06 20:46:49 +0100 |
commit | 03541446b23ca3916f7d3d94fba6f7d674c7d0ae (patch) | |
tree | 0542f05ece6b99e2702a7ba17616a4e8376438e1 /patches/server/0180-Player.setPlayerProfile-API.patch | |
parent | c2b70338fc6d28d965f752fa23124c06d7517379 (diff) | |
download | Paper-03541446b23ca3916f7d3d94fba6f7d674c7d0ae.tar.gz Paper-03541446b23ca3916f7d3d94fba6f7d674c7d0ae.zip |
Drop old packs in setResourcePack
Diffstat (limited to 'patches/server/0180-Player.setPlayerProfile-API.patch')
-rw-r--r-- | patches/server/0180-Player.setPlayerProfile-API.patch | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/patches/server/0180-Player.setPlayerProfile-API.patch b/patches/server/0180-Player.setPlayerProfile-API.patch index ebd60a14f4..437cd967b2 100644 --- a/patches/server/0180-Player.setPlayerProfile-API.patch +++ b/patches/server/0180-Player.setPlayerProfile-API.patch @@ -55,10 +55,10 @@ index 477d3245facb5ae59c786d4f696f64226cb540a6..e8490a58dd4d9bc39a5bb2f9fc109526 public Server getServer() { diff --git a/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java b/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java -index a5014c7a0cb6329edd919c7fafed8ec396b23c36..4e72258af26918dc9a9ab5afcb70acfaae4691a2 100644 +index 352c16b89f0e33aefef141fea0bf8067208cffcf..f4a6a3f9c6c8972f482a53ee434dc8631d32632d 100644 --- a/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java +++ b/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java -@@ -278,11 +278,6 @@ public class CraftPlayer extends CraftHumanEntity implements Player { +@@ -279,11 +279,6 @@ public class CraftPlayer extends CraftHumanEntity implements Player { return this.server.getPlayer(this.getUniqueId()) != null; } @@ -70,7 +70,7 @@ index a5014c7a0cb6329edd919c7fafed8ec396b23c36..4e72258af26918dc9a9ab5afcb70acfa @Override public InetSocketAddress getAddress() { if (this.getHandle().connection == null) return null; -@@ -1699,8 +1694,15 @@ public class CraftPlayer extends CraftHumanEntity implements Player { +@@ -1700,8 +1695,15 @@ public class CraftPlayer extends CraftHumanEntity implements Player { private void untrackAndHideEntity(org.bukkit.entity.Entity entity) { // Remove this entity from the hidden player's EntityTrackerEntry @@ -87,7 +87,7 @@ index a5014c7a0cb6329edd919c7fafed8ec396b23c36..4e72258af26918dc9a9ab5afcb70acfa ChunkMap.TrackedEntity entry = tracker.entityMap.get(other.getId()); if (entry != null) { entry.removePlayer(this.getHandle()); -@@ -1713,8 +1715,6 @@ public class CraftPlayer extends CraftHumanEntity implements Player { +@@ -1714,8 +1716,6 @@ public class CraftPlayer extends CraftHumanEntity implements Player { this.getHandle().connection.send(new ClientboundPlayerInfoRemovePacket(List.of(otherPlayer.getUUID()))); } } @@ -96,7 +96,7 @@ index a5014c7a0cb6329edd919c7fafed8ec396b23c36..4e72258af26918dc9a9ab5afcb70acfa } void resetAndHideEntity(org.bukkit.entity.Entity entity) { -@@ -1779,12 +1779,25 @@ public class CraftPlayer extends CraftHumanEntity implements Player { +@@ -1780,12 +1780,25 @@ public class CraftPlayer extends CraftHumanEntity implements Player { } private void trackAndShowEntity(org.bukkit.entity.Entity entity) { @@ -122,7 +122,7 @@ index a5014c7a0cb6329edd919c7fafed8ec396b23c36..4e72258af26918dc9a9ab5afcb70acfa } ChunkMap.TrackedEntity entry = tracker.entityMap.get(other.getId()); -@@ -1794,6 +1807,39 @@ public class CraftPlayer extends CraftHumanEntity implements Player { +@@ -1795,6 +1808,39 @@ public class CraftPlayer extends CraftHumanEntity implements Player { this.server.getPluginManager().callEvent(new PlayerShowEntityEvent(this, entity)); } @@ -162,7 +162,7 @@ index a5014c7a0cb6329edd919c7fafed8ec396b23c36..4e72258af26918dc9a9ab5afcb70acfa void resetAndShowEntity(org.bukkit.entity.Entity entity) { // SPIGOT-7312: Can't show/hide self -@@ -1805,6 +1851,36 @@ public class CraftPlayer extends CraftHumanEntity implements Player { +@@ -1806,6 +1852,36 @@ public class CraftPlayer extends CraftHumanEntity implements Player { this.trackAndShowEntity(entity); } } |