13
0
geforkt von Mirrors/Paper

We build for 1.5.

By: EvilSeph <evilseph@gmail.com>
Dieser Commit ist enthalten in:
Bukkit/Spigot 2012-03-01 04:41:25 -05:00
Ursprung 10cd1cbb5c
Commit b02f2bb28b

Datei anzeigen

@ -1,6 +1,5 @@
package org.bukkit.util; package org.bukkit.util;
import java.util.Arrays;
import java.util.LinkedList; import java.util.LinkedList;
import java.util.List; import java.util.List;
@ -42,7 +41,7 @@ public class ChatPaginator {
int from = (actualPageNumber - 1) * pageHeight; int from = (actualPageNumber - 1) * pageHeight;
int to = from + pageHeight <= lines.length ? from + pageHeight : lines.length; int to = from + pageHeight <= lines.length ? from + pageHeight : lines.length;
String[] selectedLines = Arrays.copyOfRange(lines, from, to); String[] selectedLines = Java15Compat.Arrays_copyOfRange(lines, from, to);
return new ChatPage(selectedLines, actualPageNumber, totalPages); return new ChatPage(selectedLines, actualPageNumber, totalPages);
} }