SignBlockEntityMixin cleanup

This commit is contained in:
dfsek
2021-05-04 16:10:37 -07:00
parent 4c77419dcd
commit 6866084872

View File

@@ -23,12 +23,11 @@ public abstract class SignBlockEntityMixin {
private Text[] text;
public @NotNull String[] terra$getLines() {
return new String[] {
terra$getLine(0),
terra$getLine(1),
terra$getLine(2),
terra$getLine(3)
};
String[] lines = new String[text.length];
for(int i = 0; i < text.length; i++) {
lines[i] = text[i].asString();
}
return lines;
}
public @NotNull String terra$getLine(int index) throws IndexOutOfBoundsException {