Skip to content

Commit e866f01

Browse files
Fix bug for not adding SHULKER material as shopable
1 parent d3885d4 commit e866f01

File tree

1 file changed

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

1 file changed

+2
-3
lines changed

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

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -708,12 +708,11 @@ public static void initialize() {
708708
if (mat == null) {
709709
plugin.getLogger().warning("Invalid shop-block: " + s);
710710
} else {
711-
if (!mat.name().contains("SHULKER")) {
712-
SHOPABLES.add(mat);
713-
} else {
711+
if (mat.name().contains("SHULKER")) {
714712
plugin.getConfig().set("shop.enchance-shop-protect", true);
715713
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");
716714
}
715+
SHOPABLES.add(mat);
717716
}
718717
}
719718
List<String> configBlacklist = plugin.getConfig().getStringList("blacklist");

0 commit comments

Comments
 (0)