Permalink
Browse files

Remove the quoting of \n

  • Loading branch information...
me4502 committed Jan 29, 2018
1 parent 7597500 commit f9e20c7cece8c0e33e8bc5a737d1d4fe7ed08633
@@ -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(Pattern.quote("\n"))) {
for (String lineSegment : line.split("\n")) {
player.sendMessage(TextSerializers.FORMATTING_CODE.deserialize(lineSegment));
}
});

0 comments on commit f9e20c7

Please sign in to comment.