[1.11.x] Fix blank tab in creative inventory when additional tabs evenly divisible by 10 (#3817)

This commit is contained in:
Kirill Kuznetsov 2017-04-03 05:50:10 +03:00 committed by LexManos
parent 25497d310b
commit b6194b0cca

View file

@ -18,7 +18,7 @@
+ {
+ field_146292_n.add(new GuiButton(101, field_147003_i, field_147009_r - 50, 20, 20, "<"));
+ field_146292_n.add(new GuiButton(102, field_147003_i + field_146999_f - 20, field_147009_r - 50, 20, 20, ">"));
+ maxPages = ((tabCount - 12) / 10) + 1;
+ maxPages = (int) Math.ceil((tabCount - 12) / 10D);
+ }
}
else