From b6194b0cca925d5560616f2f8f6246cf4421d6cf Mon Sep 17 00:00:00 2001 From: Kirill Kuznetsov Date: Mon, 3 Apr 2017 05:50:10 +0300 Subject: [PATCH] [1.11.x] Fix blank tab in creative inventory when additional tabs evenly divisible by 10 (#3817) --- .../client/gui/inventory/GuiContainerCreative.java.patch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/patches/minecraft/net/minecraft/client/gui/inventory/GuiContainerCreative.java.patch b/patches/minecraft/net/minecraft/client/gui/inventory/GuiContainerCreative.java.patch index 525e49678..da0185cc7 100644 --- a/patches/minecraft/net/minecraft/client/gui/inventory/GuiContainerCreative.java.patch +++ b/patches/minecraft/net/minecraft/client/gui/inventory/GuiContainerCreative.java.patch @@ -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