From 1c079b5abe6474f0b6ac63c91811d83c1de4034f Mon Sep 17 00:00:00 2001 From: MineTheCube Date: Thu, 18 Aug 2016 14:43:36 +0200 Subject: [PATCH] Change method name to what it really does --- .../shopchest/listeners/ShopItemListener.java | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/main/java/de/epiceric/shopchest/listeners/ShopItemListener.java b/src/main/java/de/epiceric/shopchest/listeners/ShopItemListener.java index 0e9f1dd..a0069e9 100644 --- a/src/main/java/de/epiceric/shopchest/listeners/ShopItemListener.java +++ b/src/main/java/de/epiceric/shopchest/listeners/ShopItemListener.java @@ -36,17 +36,17 @@ public class ShopItemListener implements Listener { return; } - updateShopVisibility(e.getPlayer(), true); + updateShopItemVisibility(e.getPlayer(), true); } @EventHandler(priority = EventPriority.HIGH, ignoreCancelled = true) public void onPlayerTeleport(PlayerTeleportEvent e) { - updateShopVisibility(e.getPlayer(), true, e.getTo()); + updateShopItemVisibility(e.getPlayer(), true, e.getTo()); } @EventHandler public void onPlayerJoin(PlayerJoinEvent e) { - updateShopVisibility(e.getPlayer(), false); + updateShopItemVisibility(e.getPlayer(), false); } @EventHandler @@ -56,11 +56,11 @@ public class ShopItemListener implements Listener { } } - private void updateShopVisibility(Player p, boolean hideIfAway) { - updateShopVisibility(p, hideIfAway, p.getLocation()); + private void updateShopItemVisibility(Player p, boolean hideIfAway) { + updateShopItemVisibility(p, hideIfAway, p.getLocation()); } - private void updateShopVisibility(Player p, boolean hideIfAway, Location playerLocation) { + private void updateShopItemVisibility(Player p, boolean hideIfAway, Location playerLocation) { double itemDistanceSquared = plugin.getShopChestConfig().maximal_item_distance; itemDistanceSquared *= itemDistanceSquared;