Skip to content

Commit

Permalink
extra fix add/set member mechs
Browse files Browse the repository at this point in the history
  • Loading branch information
mcmonkey4eva committed Apr 16, 2020
1 parent 8089d8a commit 11afe99
Showing 1 changed file with 4 additions and 2 deletions.
Expand Up @@ -1537,8 +1537,9 @@ public void adjust(Mechanism mechanism) {
int member = 1;
if (comma > 0 && !value.startsWith("cu@")) {
member = new ElementTag(value.substring(0, comma)).asInt();
value = value.substring(comma + 1);
}
CuboidTag subCuboid = CuboidTag.valueOf(comma == -1 ? value : value.substring(comma + 1));
CuboidTag subCuboid = CuboidTag.valueOf(value);
if (member < 1) {
member = 1;
}
Expand Down Expand Up @@ -1568,8 +1569,9 @@ public void adjust(Mechanism mechanism) {
int member = pairs.size() + 1;
if (comma > 0 && !value.startsWith("cu@")) {
member = new ElementTag(value.substring(0, comma)).asInt();
value = value.substring(comma + 1);
}
CuboidTag subCuboid = CuboidTag.valueOf(comma == -1 ? value : value.substring(comma + 1));
CuboidTag subCuboid = CuboidTag.valueOf(value);
if (member < 1) {
member = 1;
}
Expand Down

0 comments on commit 11afe99

Please sign in to comment.