Skip to content

Commit

Permalink
Hide message about backpacks with more than 6 rows if the backpack do…
Browse files Browse the repository at this point in the history
…es not have more than 6 rows
  • Loading branch information
GeorgH93 committed Jan 30, 2020
1 parent 8511409 commit cf32237
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -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:[email protected]:GeorgH93/Minepacks.git</connection>
Expand Down
4 changes: 2 additions & 2 deletions src/at/pcgamingfreaks/Minepacks/Bukkit/Backpack.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit cf32237

Please sign in to comment.