forgot to find

This commit is contained in:
Jesse Boyd 2019-11-10 13:24:04 +00:00
parent 7dcecf486d
commit f1b8510708
No known key found for this signature in database
GPG Key ID: 59F1DE6293AF6E1F

View File

@ -74,6 +74,7 @@ public class Configuration {
final String[] parts = string.split(",(?![^\\(\\[]*[\\]\\)])"); final String[] parts = string.split(",(?![^\\(\\[]*[\\]\\)])");
for (final String part : parts) { for (final String part : parts) {
Matcher matcher = pattern.matcher(part); Matcher matcher = pattern.matcher(part);
matcher.find();
String namespace = matcher.group("namespace"); String namespace = matcher.group("namespace");
String block = matcher.group("block"); String block = matcher.group("block");
String chanceStr = matcher.group("chance"); String chanceStr = matcher.group("chance");
@ -101,6 +102,7 @@ public class Configuration {
final String[] parts = string.split(",(?![^\\(\\[]*[\\]\\)])"); final String[] parts = string.split(",(?![^\\(\\[]*[\\]\\)])");
for (final String part : parts) { for (final String part : parts) {
Matcher matcher = pattern.matcher(part); Matcher matcher = pattern.matcher(part);
matcher.find();
String namespace = matcher.group("namespace"); String namespace = matcher.group("namespace");
String block = matcher.group("block"); String block = matcher.group("block");
String chanceStr = matcher.group("chance"); String chanceStr = matcher.group("chance");