Skip to content

Commit 33e536a

Browse files
Fix PotatoCraft-Studio#251, checking config value before warning
1 parent 87bbcfd commit 33e536a

File tree

1 file changed

+1
-1
lines changed
  • src/main/java/org/maxgamer/quickshop/util

1 file changed

+1
-1
lines changed

src/main/java/org/maxgamer/quickshop/util/Util.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -708,7 +708,7 @@ public static void initialize() {
708708
if (mat == null) {
709709
plugin.getLogger().warning("Invalid shop-block: " + s);
710710
} else {
711-
if (mat.name().contains("SHULKER")) {
711+
if (!plugin.getConfig().getBoolean("shop.enchance-shop-protect") && mat.name().contains("SHULKER")) {
712712
plugin.getConfig().set("shop.enchance-shop-protect", true);
713713
plugin.getLogger().log(java.util.logging.Level.SEVERE, "enchance-shop-protect settings was forced enabled to prevent the piston bug, see: https://github.com/PotatoCraft-Studio/QuickShop-Reremake/issues/248");
714714
}

0 commit comments

Comments
 (0)