summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIaccidentally <coryhuckaby@gmail.com>2013-04-16 16:16:07 -0400
committerIaccidentally <coryhuckaby@gmail.com>2013-04-16 16:16:07 -0400
commit4629cad99bb85d852fcbe7e32cb19563ea43e552 (patch)
treef2433e3b4d1fe55f0aa71631f9adfe5d1e21fcbb
parent5e360995eb0ca81f258a2c3be2d85ece7d180be3 (diff)
downloadEssentials-4629cad99bb85d852fcbe7e32cb19563ea43e552.tar
Essentials-4629cad99bb85d852fcbe7e32cb19563ea43e552.tar.gz
Essentials-4629cad99bb85d852fcbe7e32cb19563ea43e552.tar.lz
Essentials-4629cad99bb85d852fcbe7e32cb19563ea43e552.tar.xz
Essentials-4629cad99bb85d852fcbe7e32cb19563ea43e552.zip
Clean up last commit
-rw-r--r--Essentials/src/com/earth2me/essentials/EssentialsEntityListener.java8
1 files changed, 6 insertions, 2 deletions
diff --git a/Essentials/src/com/earth2me/essentials/EssentialsEntityListener.java b/Essentials/src/com/earth2me/essentials/EssentialsEntityListener.java
index 67cc8f067..bb58067bc 100644
--- a/Essentials/src/com/earth2me/essentials/EssentialsEntityListener.java
+++ b/Essentials/src/com/earth2me/essentials/EssentialsEntityListener.java
@@ -203,9 +203,13 @@ public class EssentialsEntityListener implements Listener
@EventHandler(priority = EventPriority.LOW, ignoreCancelled = true)
public void onEntityShootBow (EntityShootBowEvent event)
{
- if (event.getEntity() instanceof Player && ess.getUser(event.getEntity()).isAfk())
+ if (event.getEntity() instanceof Player)
{
- ess.getUser(event.getEntity()).updateActivity(true);
+ final User user = ess.getUser(event.getEntity());
+ if (user.isAfk())
+ {
+ user.updateActivity(true);
+ }
}
}
}