Permalink
Browse files

Fixed multiline books

  • Loading branch information...
me4502 committed Feb 6, 2018
1 parent f9e20c7 commit 512728ad2f9cccf5060a106264b6ab243ad2ab03
@@ -112,7 +112,7 @@ public void onPlayerInteract(InteractBlockEvent.Secondary.MainHand event, @First
String line = bookLines[ThreadLocalRandom.current().nextInt(bookLines.length)];

player.sendMessage(Text.of(TextColors.YELLOW, "You pick up a book..."));
for (String lineSegment : line.split("\n")) {
for (String lineSegment : line.split("\\\\n")) {
player.sendMessage(TextSerializers.FORMATTING_CODE.deserialize(lineSegment));
}
});

0 comments on commit 512728a

Please sign in to comment.