Hide message about backpacks with more than 6 rows if the backpack does not have more than 6 rows

This commit is contained in:
GeorgH93 2020-01-30 23:41:30 +01:00
parent 8511409920
commit cf32237ae9
No known key found for this signature in database
GPG Key ID: D1630D37F9E4B3C8
2 changed files with 3 additions and 3 deletions

View File

@ -3,7 +3,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>at.pcgamingfreaks</groupId>
<artifactId>Minepacks</artifactId>
<version>2.1.5</version>
<version>2.1.6</version>
<scm>
<connection>scm:git:git@github.com:GeorgH93/Minepacks.git</connection>

View File

@ -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;