mirror of
https://github.com/CarmJos/EasyPlugin.git
synced 2026-06-04 16:48:16 +08:00
fix(gui): 修复翻页GUI可能出现幽灵页的问题。
This commit is contained in:
@@ -117,7 +117,7 @@ public class CommonPagedGUI extends PagedGUI {
|
|||||||
* @return 最后一页的页码
|
* @return 最后一页的页码
|
||||||
*/
|
*/
|
||||||
public int getLastPageNumber() {
|
public int getLastPageNumber() {
|
||||||
return (this.container.size() / range.length) + 1;
|
return (this.container.size() / range.length) + ((this.container.size() % range.length) == 0 ? 0 : 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user