Skip to content

Commit 2793dbb

Browse files
v.1.1.0 part 5
- Fixed a bug, that made the paged inv unfunctional, if the size of the list was smaller than 3
1 parent c695714 commit 2793dbb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/de/littleprogrammer/guiapi/guis/PagedGui.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ public void open(Player player) {
4646
centerLocation = new Location(player.getWorld(), 0, 0, 0);
4747

4848
for (int i = 0; i < 3; i++) {
49-
if (contents.size() >= i) {
49+
if (contents.size() > i) {
5050
Text text = new Text(contents.get(i + page), i + 1).setSize(contentSize);
5151
text.setGui(this);
5252
texts.add(text);

0 commit comments

Comments
 (0)