mirror of
https://github.com/GeorgH93/Minepacks.git
synced 2024-11-28 13:05:14 +01:00
Hide message about backpacks with more than 6 rows if the backpack does not have more than 6 rows
This commit is contained in:
parent
8511409920
commit
cf32237ae9
2
pom.xml
2
pom.xml
@ -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>
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user