Skip to content

Commit

Permalink
Remove the quoting of \n
Browse files Browse the repository at this point in the history
  • Loading branch information
me4502 committed Jan 29, 2018
1 parent 7597500 commit f9e20c7
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -112,7 +112,7 @@ public void onPlayerInteract(InteractBlockEvent.Secondary.MainHand event, @First
String line = bookLines[ThreadLocalRandom.current().nextInt(bookLines.length)]; String line = bookLines[ThreadLocalRandom.current().nextInt(bookLines.length)];


player.sendMessage(Text.of(TextColors.YELLOW, "You pick up a book...")); 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)); player.sendMessage(TextSerializers.FORMATTING_CODE.deserialize(lineSegment));
} }
}); });
Expand Down

0 comments on commit f9e20c7

Please sign in to comment.