diff options
Diffstat (limited to 'patches/server/0279-Add-PlayerPostRespawnEvent.patch')
-rw-r--r-- | patches/server/0279-Add-PlayerPostRespawnEvent.patch | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/patches/server/0279-Add-PlayerPostRespawnEvent.patch b/patches/server/0279-Add-PlayerPostRespawnEvent.patch index a2ffa8e647..e7b73e0c98 100644 --- a/patches/server/0279-Add-PlayerPostRespawnEvent.patch +++ b/patches/server/0279-Add-PlayerPostRespawnEvent.patch @@ -5,7 +5,7 @@ Subject: [PATCH] Add PlayerPostRespawnEvent diff --git a/src/main/java/net/minecraft/server/players/PlayerList.java b/src/main/java/net/minecraft/server/players/PlayerList.java -index a04cfa09d9f8594a7ad3120855efe1641abb7a47..2f48182fea64a82857cbb93dc94f7019ac55215a 100644 +index 51e6169530b775b9f325c7c14e37b97a00d5b2cf..768754f11d72921e1206e7bd029c94fae650ae82 100644 --- a/src/main/java/net/minecraft/server/players/PlayerList.java +++ b/src/main/java/net/minecraft/server/players/PlayerList.java @@ -704,6 +704,10 @@ public abstract class PlayerList { @@ -37,7 +37,7 @@ index a04cfa09d9f8594a7ad3120855efe1641abb7a47..2f48182fea64a82857cbb93dc94f7019 return entityplayer; } // Spigot End -@@ -763,6 +772,11 @@ public abstract class PlayerList { +@@ -764,6 +773,11 @@ public abstract class PlayerList { if (iblockdata.is(Blocks.RESPAWN_ANCHOR)) { entityplayer1.connection.send(new ClientboundSoundPacket(SoundEvents.RESPAWN_ANCHOR_DEPLETE, SoundSource.BLOCKS, (double) blockposition.getX(), (double) blockposition.getY(), (double) blockposition.getZ(), 1.0F, 1.0F, worldserver.getRandom().nextLong())); } @@ -49,7 +49,7 @@ index a04cfa09d9f8594a7ad3120855efe1641abb7a47..2f48182fea64a82857cbb93dc94f7019 } // Added from changeDimension this.sendAllPlayerInfo(entityplayer); // Update health, etc... -@@ -784,6 +798,13 @@ public abstract class PlayerList { +@@ -785,6 +799,13 @@ public abstract class PlayerList { if (entityplayer.connection.isDisconnected()) { this.save(entityplayer); } |