Skip to content

Commit

Permalink
remove reliance on weird specialized toArray thingy
Browse files Browse the repository at this point in the history
  • Loading branch information
mcmonkey4eva committed Jan 7, 2020
1 parent d4f1ffd commit 7245530
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Expand Up @@ -3478,7 +3478,7 @@ else if (split.length > 1) {
String[] split = mechanism.getValue().asString().split("[\\|" + ListTag.internal_escape + "]", 2);
if (LocationTag.matches(split[0]) && split.length > 1) {
ListTag lines = ListTag.valueOf(split[1]);
getPlayerEntity().sendSignChange(LocationTag.valueOf(split[0]), lines.toArray(4));
getPlayerEntity().sendSignChange(LocationTag.valueOf(split[0]), lines.toArray(new String[4]));
}
else {
Debug.echoError("Must specify a valid location and at least one sign line!");
Expand Down
Expand Up @@ -163,6 +163,6 @@ else if (!MaterialCompat.isAnySign(sign.getType())) {
}
BlockState signState = sign.getState();

Utilities.setSignLines((Sign) signState, text.toArray(4));
Utilities.setSignLines((Sign) signState, text.toArray(new String[4]));
}
}

0 comments on commit 7245530

Please sign in to comment.