Fixed old shop updating

This commit is contained in:
Eric 2017-05-17 17:12:45 +02:00
parent 63a0509248
commit 7560cddb7a

View File

@ -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);