From 9f1b77a00749c26a428187d24d3ed255a1e0d57f Mon Sep 17 00:00:00 2001 From: GJ Date: Tue, 3 Jul 2012 08:36:21 -0400 Subject: [PATCH] Refactoring --- src/main/java/com/gmail/nossr50/util/Skills.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/gmail/nossr50/util/Skills.java b/src/main/java/com/gmail/nossr50/util/Skills.java index 70c79a6f5..241f9e98b 100644 --- a/src/main/java/com/gmail/nossr50/util/Skills.java +++ b/src/main/java/com/gmail/nossr50/util/Skills.java @@ -161,9 +161,9 @@ public class Skills { PP.setAbilityInformed(ability, false); player.sendMessage(ability.getAbilityOff()); - for (Player y : player.getWorld().getPlayers()) { - if (y != player && Misc.isNear(player.getLocation(), y.getLocation(), MAX_DISTANCE_AWAY)) { - y.sendMessage(ability.getAbilityPlayerOff(player)); + for (Player nearbyPlayer : player.getWorld().getPlayers()) { + if (nearbyPlayer != player && Misc.isNear(player.getLocation(), nearbyPlayer.getLocation(), MAX_DISTANCE_AWAY)) { + nearbyPlayer.sendMessage(ability.getAbilityPlayerOff(player)); } } }