diff --git a/pom.xml b/pom.xml
index 1c0e3e1..2b5d22f 100644
--- a/pom.xml
+++ b/pom.xml
@@ -2,11 +2,11 @@
4.0.0
giants
giants
- 22.2.3
+ 22.2.4
1.8
- 1.8
+ 17
diff --git a/src/main/java/pl/minecon724/giants/Main.java b/src/main/java/pl/minecon724/giants/Main.java
index b3eb002..38759f4 100644
--- a/src/main/java/pl/minecon724/giants/Main.java
+++ b/src/main/java/pl/minecon724/giants/Main.java
@@ -59,11 +59,7 @@ public class Main extends JavaPlugin implements Listener, CommandExecutor {
@Override
public void onEnable() {
metrics.addCustomChart(new SimplePie("ram_allocation", () -> {
- long maxMemory = Runtime.getRuntime().maxMemory();
- if (maxMemory == Long.MAX_VALUE) {
- return "No limit";
- }
- return Integer.toString(Math.round(maxMemory/512) * 512);
+ return Long.toString(Runtime.getRuntime().maxMemory());
}));
if (!(configFile.exists())) {
saveResource("config.yml", false);