Skip to content

Commit

Permalink
Removed validation check on item name. Name is only for visual purpose.
Browse files Browse the repository at this point in the history
  • Loading branch information
Feli499 committed Apr 4, 2024
1 parent 9e577dc commit 15b47b5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/com/Acrobot/ChestShop/Signs/ChestShopSign.java
Expand Up @@ -24,7 +24,7 @@ public class ChestShopSign {

public static final byte PRICE_LINE = 2;
public static final Pattern[] SHOP_SIGN_PATTERN = { Pattern.compile("^?[\\w -.]*$"), Pattern.compile("^[1-9][0-9]{0,4}$"),
Pattern.compile("(?i)^[\\d.bs(free) :]+$"), Pattern.compile("^[\\w§? #:-]+$") };
Pattern.compile("(?i)^[\\d.bs(free) :]+$") };

private static NamespacedKey METADATA_NAMESPACED_KEY;

Expand Down Expand Up @@ -206,7 +206,7 @@ public static void saveChestShopMetaData(Sign sign, ChestShopMetaData chestShopM
}

public static boolean isValidPreparedSign(String[] lines) {
for (int i = 0; i < 4; i++) {
for (int i = 0; i < 3; i++) {
if (!SHOP_SIGN_PATTERN[i].matcher(lines[i]).matches()) {
return false;
}
Expand Down

0 comments on commit 15b47b5

Please sign in to comment.