summaryrefslogtreecommitdiffstats
path: root/src/main/java/net/minecraft/server/BlockPortal.java
diff options
context:
space:
mode:
authorturt2live <travpc@gmail.com>2014-02-01 20:46:23 -0700
committerWesley Wolfe <weswolf@aol.com>2014-02-01 22:52:01 -0600
commitc59ba98ae6c61c78827a33a3138ade5462d9ae11 (patch)
tree75d89ab3c9fbf0f25adb53c639abf7c98775dd8d /src/main/java/net/minecraft/server/BlockPortal.java
parentd7d81fa68fb439c41547d347dd099261ff28af17 (diff)
downloadcraftbukkit-c59ba98ae6c61c78827a33a3138ade5462d9ae11.tar
craftbukkit-c59ba98ae6c61c78827a33a3138ade5462d9ae11.tar.gz
craftbukkit-c59ba98ae6c61c78827a33a3138ade5462d9ae11.tar.lz
craftbukkit-c59ba98ae6c61c78827a33a3138ade5462d9ae11.tar.xz
craftbukkit-c59ba98ae6c61c78827a33a3138ade5462d9ae11.zip
[Bleeding] Handle players disconnecting during respawn. Fixes BUKKIT-4327
Prior to this commit, a player disconnected during a respawn event would remain in memory. This causes a ghosting issue of players in the slot count and player list, as well as a reference leak. This commit avoids re-adding the player to the player list (and world) if they are disconnected. This ensures that the remainder of the respawn logic is completed as well as ensuring a duplicate player is not left on the server. This commit also saves the player's file at the end of the method if they have been disconnected to ensure that their next login is accurate to the respawn event's actions. A player that was revived and disconnected will reconnect as revived.
Diffstat (limited to 'src/main/java/net/minecraft/server/BlockPortal.java')
0 files changed, 0 insertions, 0 deletions