diff --git a/common/src/main/java/net/blay09/mods/farmingforblockheads/client/gui/screen/MarketScreen.java b/common/src/main/java/net/blay09/mods/farmingforblockheads/client/gui/screen/MarketScreen.java index 508185c..1141c3a 100644 --- a/common/src/main/java/net/blay09/mods/farmingforblockheads/client/gui/screen/MarketScreen.java +++ b/common/src/main/java/net/blay09/mods/farmingforblockheads/client/gui/screen/MarketScreen.java @@ -87,10 +87,11 @@ private void updateCategoryFilters() { } filterButtons.clear(); + int curX = 87; int curY = -80; final var categories = menu.getCategories(); for (final var category : categories) { - MarketFilterButton filterButton = new MarketFilterButton(width / 2 + 87, height / 2 + curY, menu, category, button -> { + MarketFilterButton filterButton = new MarketFilterButton(width / 2 + curX, height / 2 + curY, menu, category, button -> { if (menu.getCurrentCategory().map(it -> it.equals(category)).orElse(false)) { menu.setCategory(null); } else { @@ -104,6 +105,10 @@ private void updateCategoryFilters() { filterButtons.add(filterButton); curY += 20; + if (curY > 60) { + curY = -80; + curX += 20; + } } }