!Small change

This commit is contained in:
Indyuce 2019-12-29 16:44:04 +01:00
parent c4c83577f1
commit ff8effdd81

View File

@ -131,7 +131,7 @@ public class WaypointViewer extends EditableInventory {
if (index >= generated.waypoints.size())
return noWaypoint.display(inv, n);
Waypoint waypoint = generated.waypoints.get(generated.page * inv.getEditable().getByFunction("waypoint").getSlots().size() + n);
Waypoint waypoint = generated.waypoints.get(index);
return inv.getPlayerData().hasWaypoint(waypoint) ? availWaypoint.display(inv, n) : locked.display(inv);
}