mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-15 04:05:50 -07:00
@@ -1,6 +1,5 @@
|
||||
package org.bukkit.util;
|
||||
|
||||
import java.util.Arrays;
|
||||
import java.util.LinkedList;
|
||||
import java.util.List;
|
||||
|
||||
@@ -42,7 +41,7 @@ public class ChatPaginator {
|
||||
|
||||
int from = (actualPageNumber - 1) * pageHeight;
|
||||
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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user