summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIaccidentally <coryhuckaby@gmail.com>2012-06-22 03:44:19 -0400
committerIaccidentally <coryhuckaby@gmail.com>2012-06-22 03:44:19 -0400
commit329f93a4f67de40f3a382cd6dec91a814f679eb4 (patch)
tree3ff00bc1870c69da0f5be1a1c453ed9a93b99ea2
parentb70f950479ead7a3bf7cce0f176a75770399e2c9 (diff)
downloadEssentials-329f93a4f67de40f3a382cd6dec91a814f679eb4.tar
Essentials-329f93a4f67de40f3a382cd6dec91a814f679eb4.tar.gz
Essentials-329f93a4f67de40f3a382cd6dec91a814f679eb4.tar.lz
Essentials-329f93a4f67de40f3a382cd6dec91a814f679eb4.tar.xz
Essentials-329f93a4f67de40f3a382cd6dec91a814f679eb4.zip
fix /back resetting on logout
-rw-r--r--Essentials/src/com/earth2me/essentials/EssentialsPlayerListener.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/Essentials/src/com/earth2me/essentials/EssentialsPlayerListener.java b/Essentials/src/com/earth2me/essentials/EssentialsPlayerListener.java
index 369eb3808..e68a9e93a 100644
--- a/Essentials/src/com/earth2me/essentials/EssentialsPlayerListener.java
+++ b/Essentials/src/com/earth2me/essentials/EssentialsPlayerListener.java
@@ -120,7 +120,9 @@ public class EssentialsPlayerListener implements Listener
{
user.toggleVanished();
}
- user.setLastLocation();
+ if (user.getLastLocation() == null) {
+ user.setLastLocation();
+ }
user.updateActivity(false);
user.dispose();
}