From 7560cddb7a55b83989d32d4ebe95348970db6c6b Mon Sep 17 00:00:00 2001 From: Eric Date: Wed, 17 May 2017 17:12:45 +0200 Subject: [PATCH] Fixed old shop updating --- src/main/java/de/epiceric/shopchest/utils/ShopUtils.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/de/epiceric/shopchest/utils/ShopUtils.java b/src/main/java/de/epiceric/shopchest/utils/ShopUtils.java index 5d30e93..c7cee8e 100644 --- a/src/main/java/de/epiceric/shopchest/utils/ShopUtils.java +++ b/src/main/java/de/epiceric/shopchest/utils/ShopUtils.java @@ -338,7 +338,7 @@ public class ShopUtils { * @param player Player to show the update */ public void updateShop(Shop shop, Player player) { - if (shop.getLocation().getChunk().isLoaded()) return; + if (!shop.getLocation().getChunk().isLoaded()) return; double holoDistSqr = Math.pow(plugin.getShopChestConfig().maximal_distance, 2); double itemDistSqr = Math.pow(plugin.getShopChestConfig().maximal_item_distance, 2);