diff --git a/MineTweaker3-MC1710-Main/src/main/java/minetweaker/mc1710/brackets/ItemBracketHandler.java b/MineTweaker3-MC1710-Main/src/main/java/minetweaker/mc1710/brackets/ItemBracketHandler.java index 7d2525a4..f03e82e3 100644 --- a/MineTweaker3-MC1710-Main/src/main/java/minetweaker/mc1710/brackets/ItemBracketHandler.java +++ b/MineTweaker3-MC1710-Main/src/main/java/minetweaker/mc1710/brackets/ItemBracketHandler.java @@ -41,7 +41,7 @@ public class ItemBracketHandler implements IBracketHandler { static { itemNames = new HashMap(); for (String itemName : (Set) Item.itemRegistry.getKeys()) { - itemNames.put(itemName.replace(" ", ""), (Item) Item.itemRegistry.getObject(itemName)); + itemNames.put(itemName.replaceAll("[^[_\p{Alnum}]]", ""), (Item) Item.itemRegistry.getObject(itemName)); } }