mirror of
https://github.com/StarWishsama/Slimefun4.git
synced 2024-09-19 19:25:48 +00:00
Fixed OutOfBoundsException on the Slimefun Guide
This commit is contained in:
parent
4b25a63076
commit
0c2a4525e7
@ -320,7 +320,7 @@ public class SlimefunGuide {
|
||||
|
||||
int category_index = category_size * (selected_page - 1);
|
||||
int target = category_index - 1;
|
||||
while (index < category_size && target < (categories.size() + handlers.size())) {
|
||||
while (index < category_size && target < (categories.size() + handlers.size() - 2)) {
|
||||
target++;
|
||||
if (target >= categories.size()) {
|
||||
if (!survival) break;
|
||||
|
Loading…
Reference in New Issue
Block a user