From cf32237ae9033da08942d0d4a07c8c00657df6a9 Mon Sep 17 00:00:00 2001 From: GeorgH93 Date: Thu, 30 Jan 2020 23:41:30 +0100 Subject: [PATCH] Hide message about backpacks with more than 6 rows if the backpack does not have more than 6 rows --- pom.xml | 2 +- src/at/pcgamingfreaks/Minepacks/Bukkit/Backpack.java | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pom.xml b/pom.xml index 28d6b2c6..fd05e15b 100644 --- a/pom.xml +++ b/pom.xml @@ -3,7 +3,7 @@ 4.0.0 at.pcgamingfreaks Minepacks - 2.1.5 + 2.1.6 scm:git:git@github.com:GeorgH93/Minepacks.git diff --git a/src/at/pcgamingfreaks/Minepacks/Bukkit/Backpack.java b/src/at/pcgamingfreaks/Minepacks/Bukkit/Backpack.java index 6287f064..e67b92c5 100644 --- a/src/at/pcgamingfreaks/Minepacks/Bukkit/Backpack.java +++ b/src/at/pcgamingfreaks/Minepacks/Bukkit/Backpack.java @@ -91,9 +91,9 @@ public Backpack(OfflinePlayer owner, int size) public Backpack(OfflinePlayer owner, int size, int ID) { - if(MCVersion.isNewerOrEqualThan(MCVersion.MC_1_14)) + if(MCVersion.isNewerOrEqualThan(MCVersion.MC_1_14) && size > 54) { - size = Math.min(size, 54); + size = 54; Minepacks.getInstance().getLogger().warning("Backpacks with more than 6 rows are no longer supported on Minecraft 1.14 and up!"); } this.owner = owner;