diff options
author | Jake Potrebic <[email protected]> | 2023-12-08 15:13:02 -0800 |
---|---|---|
committer | Jake Potrebic <[email protected]> | 2023-12-08 15:13:02 -0800 |
commit | f17622cc3d227cf260d2b3a378830f34b73d7368 (patch) | |
tree | 3d97a361ce16bef2cda6541190dee640cdb426ee /patches/server/0180-Player.setPlayerProfile-API.patch | |
parent | 7606e6da39cde8e966e1d0b7ec0e686919091920 (diff) | |
download | Paper-f17622cc3d227cf260d2b3a378830f34b73d7368.tar.gz Paper-f17622cc3d227cf260d2b3a378830f34b73d7368.zip |
more cleanup and resource pack api fixes
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 437cd967b2..96ec2274b8 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 352c16b89f0e33aefef141fea0bf8067208cffcf..f4a6a3f9c6c8972f482a53ee434dc8631d32632d 100644 +index 9255edcd67e2cdd2fab31ae881ca88b6a5beb8e3..a343157512ca145b3e5ab1a0fcaeae0ae7aeb2e0 100644 --- a/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java +++ b/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java -@@ -279,11 +279,6 @@ public class CraftPlayer extends CraftHumanEntity implements Player { +@@ -275,11 +275,6 @@ public class CraftPlayer extends CraftHumanEntity implements Player { return this.server.getPlayer(this.getUniqueId()) != null; } @@ -70,7 +70,7 @@ index 352c16b89f0e33aefef141fea0bf8067208cffcf..f4a6a3f9c6c8972f482a53ee434dc863 @Override public InetSocketAddress getAddress() { if (this.getHandle().connection == null) return null; -@@ -1700,8 +1695,15 @@ public class CraftPlayer extends CraftHumanEntity implements Player { +@@ -1696,8 +1691,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 352c16b89f0e33aefef141fea0bf8067208cffcf..f4a6a3f9c6c8972f482a53ee434dc863 ChunkMap.TrackedEntity entry = tracker.entityMap.get(other.getId()); if (entry != null) { entry.removePlayer(this.getHandle()); -@@ -1714,8 +1716,6 @@ public class CraftPlayer extends CraftHumanEntity implements Player { +@@ -1710,8 +1712,6 @@ public class CraftPlayer extends CraftHumanEntity implements Player { this.getHandle().connection.send(new ClientboundPlayerInfoRemovePacket(List.of(otherPlayer.getUUID()))); } } @@ -96,7 +96,7 @@ index 352c16b89f0e33aefef141fea0bf8067208cffcf..f4a6a3f9c6c8972f482a53ee434dc863 } void resetAndHideEntity(org.bukkit.entity.Entity entity) { -@@ -1780,12 +1780,25 @@ public class CraftPlayer extends CraftHumanEntity implements Player { +@@ -1776,12 +1776,25 @@ public class CraftPlayer extends CraftHumanEntity implements Player { } private void trackAndShowEntity(org.bukkit.entity.Entity entity) { @@ -122,7 +122,7 @@ index 352c16b89f0e33aefef141fea0bf8067208cffcf..f4a6a3f9c6c8972f482a53ee434dc863 } ChunkMap.TrackedEntity entry = tracker.entityMap.get(other.getId()); -@@ -1795,6 +1808,39 @@ public class CraftPlayer extends CraftHumanEntity implements Player { +@@ -1791,6 +1804,39 @@ public class CraftPlayer extends CraftHumanEntity implements Player { this.server.getPluginManager().callEvent(new PlayerShowEntityEvent(this, entity)); } @@ -162,7 +162,7 @@ index 352c16b89f0e33aefef141fea0bf8067208cffcf..f4a6a3f9c6c8972f482a53ee434dc863 void resetAndShowEntity(org.bukkit.entity.Entity entity) { // SPIGOT-7312: Can't show/hide self -@@ -1806,6 +1852,36 @@ public class CraftPlayer extends CraftHumanEntity implements Player { +@@ -1802,6 +1848,36 @@ public class CraftPlayer extends CraftHumanEntity implements Player { this.trackAndShowEntity(entity); } } |