Dieser Commit ist enthalten in:
Ursprung
ec973e3104
Commit
fe037aa766
@ -52,7 +52,14 @@ public class ScriptEditScreen extends Screen {
|
|||||||
NbtCompound nbtCompound = itemStack.getNbt();
|
NbtCompound nbtCompound = itemStack.getNbt();
|
||||||
if (nbtCompound != null) {
|
if (nbtCompound != null) {
|
||||||
BookScreen.filterPages(nbtCompound, s -> {
|
BookScreen.filterPages(nbtCompound, s -> {
|
||||||
lines.addAll(Arrays.asList(s.split("\n")));
|
String[] split = s.split("\n");
|
||||||
|
for (String s1 : split) {
|
||||||
|
if (s1.equals(" ")) {
|
||||||
|
lines.add("");
|
||||||
|
} else {
|
||||||
|
lines.add(s1);
|
||||||
|
}
|
||||||
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
if (lines.isEmpty()) {
|
if (lines.isEmpty()) {
|
||||||
@ -385,7 +392,7 @@ public class ScriptEditScreen extends Screen {
|
|||||||
page = new StringBuilder();
|
page = new StringBuilder();
|
||||||
}
|
}
|
||||||
if (line.isEmpty()) {
|
if (line.isEmpty()) {
|
||||||
page.append("\n");
|
page.append(" ");
|
||||||
} else {
|
} else {
|
||||||
page.append(line);
|
page.append(line);
|
||||||
}
|
}
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren