Dieser Commit ist enthalten in:
Ursprung
ec973e3104
Commit
fe037aa766
@ -52,7 +52,14 @@ public class ScriptEditScreen extends Screen {
|
||||
NbtCompound nbtCompound = itemStack.getNbt();
|
||||
if (nbtCompound != null) {
|
||||
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()) {
|
||||
@ -385,7 +392,7 @@ public class ScriptEditScreen extends Screen {
|
||||
page = new StringBuilder();
|
||||
}
|
||||
if (line.isEmpty()) {
|
||||
page.append("\n");
|
||||
page.append(" ");
|
||||
} else {
|
||||
page.append(line);
|
||||
}
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren