From 773cb102e3897fb42c199500533ec0c7624fa99f Mon Sep 17 00:00:00 2001 From: bruno Date: Sat, 6 Jul 2024 12:00:11 +0200 Subject: [PATCH] Fix pagination --- gradle.properties | 2 +- .../java/systems/brn/server_storage/screens/SettingsScreen.java | 2 +- .../java/systems/brn/server_storage/screens/StorageScreen.java | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/gradle.properties b/gradle.properties index 376ae5c..a6e4e0d 100644 --- a/gradle.properties +++ b/gradle.properties @@ -11,7 +11,7 @@ loader_version=0.15.11 fabric_version=0.100.4+1.21 # Mod Properties -mod_version=3.0.6 +mod_version=3.0.7 maven_group=systems.brn archives_base_name=Server_storage diff --git a/src/main/java/systems/brn/server_storage/screens/SettingsScreen.java b/src/main/java/systems/brn/server_storage/screens/SettingsScreen.java index 93a117c..103232e 100644 --- a/src/main/java/systems/brn/server_storage/screens/SettingsScreen.java +++ b/src/main/java/systems/brn/server_storage/screens/SettingsScreen.java @@ -62,7 +62,7 @@ public class SettingsScreen extends PagedGui { @Override protected int getPageAmount() { - return Math.ceilDivExact(settingsList.size(), 9 * 6); + return Math.ceilDivExact(settingsList.size(), 9 * 5); } @Override diff --git a/src/main/java/systems/brn/server_storage/screens/StorageScreen.java b/src/main/java/systems/brn/server_storage/screens/StorageScreen.java index fc1355a..b11e458 100644 --- a/src/main/java/systems/brn/server_storage/screens/StorageScreen.java +++ b/src/main/java/systems/brn/server_storage/screens/StorageScreen.java @@ -61,7 +61,7 @@ public class StorageScreen extends PagedGui { @Override protected int getPageAmount() { - return Math.ceilDivExact(blockEntity.network.filteredItemStackMap.size(), 9 * 6); + return Math.ceilDivExact(blockEntity.network.filteredItemStackMap.size(), 9 * 5); } @Override