1
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:
mrCookieSlime 2016-05-17 09:27:32 +02:00
parent 4b25a63076
commit 0c2a4525e7

View File

@ -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;