Skip to content

Commit df72109

Browse files
committed
Only send alert while exclude out of space/stock option turned on
1 parent fb01eee commit df72109

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/org/maxgamer/quickshop/QuickShop.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -854,8 +854,8 @@ public final void onEnable() {
854854
limits.put(key, limitCfg.getInt(key));
855855
}
856856
}
857-
if (getConfig().getInt("shop.finding.distance") > 100) {
858-
getLogger().severe("Shop find distance is too high! It may cause lag! Pick a number under 100!");
857+
if (getConfig().getInt("shop.finding.distance") > 100 && (getConfig().getBoolean("shop.finding.exclude-out-of-stock"))) {
858+
getLogger().severe("Shop find distance is too high with chunk loading feature turned on! It may cause lag! Pick a number under 100!");
859859
}
860860

861861
if (getConfig().getBoolean("use-caching")) {

0 commit comments

Comments
 (0)