From 1251680a1c6d9e37a8f5cbd622fe713318d9b613 Mon Sep 17 00:00:00 2001 From: Sonnicon <36009275+Sonnicon@users.noreply.github.com> Date: Sat, 17 Nov 2018 17:56:59 +0000 Subject: [PATCH] Fixed BlocksFragment categories row limit (#340) --- core/src/io/anuke/mindustry/ui/fragments/BlocksFragment.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/io/anuke/mindustry/ui/fragments/BlocksFragment.java b/core/src/io/anuke/mindustry/ui/fragments/BlocksFragment.java index 2d6b439442..50c63e4596 100644 --- a/core/src/io/anuke/mindustry/ui/fragments/BlocksFragment.java +++ b/core/src/io/anuke/mindustry/ui/fragments/BlocksFragment.java @@ -128,7 +128,7 @@ public class BlocksFragment extends Fragment{ recipeTable.margin(4).top().left().marginRight(15); //add a new row here when needed - if(cati == secrows){ + if(cati % secrows == 0){ catTable = new Table(); selectTable.row(); selectTable.add(catTable).colspan(secrows).padTop(-5).growX();