This commit is contained in:
nossr50 2020-08-11 16:13:11 -07:00
parent e890d4bae6
commit a2f2614b10
4 changed files with 25 additions and 2 deletions

View File

@ -1,3 +1,6 @@
Version 2.1.141
Added some missing values for 1.16.2 compatibility modes
Version 2.1.140
Fixed a few potential issues with scoreboards
Updated polish locale

21
pom.xml
View File

@ -2,7 +2,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>com.gmail.nossr50.mcMMO</groupId>
<artifactId>mcMMO</artifactId>
<version>2.1.140</version>
<version>2.1.141</version>
<name>mcMMO</name>
<url>https://github.com/mcMMO-Dev/mcMMO</url>
<scm>
@ -99,6 +99,7 @@
<include>org.apache.tomcat:tomcat-jdbc</include>
<include>org.apache.tomcat:tomcat-juli</include>
<include>org.bstats:bstats-bukkit</include>
<include>net.kyori:adventure-api</include>
</includes>
</artifactSet>
<relocations>
@ -151,8 +152,24 @@
<id>sk89q-repo</id>
<url>https://maven.sk89q.com/repo/</url>
</repository>
<!-- ... -->
<repository> <!-- for development builds -->
<id>sonatype-oss</id>
<url>https://oss.sonatype.org/content/repositories/snapshots/</url>
</repository>
<!-- ... -->
</repositories>
<dependencies>
<!-- <dependency>-->
<!-- <groupId>net.kyori</groupId>-->
<!-- <artifactId>adventure-platform-bukkit</artifactId>-->
<!-- <version>4.0.0-SNAPSHOT</version>-->
<!-- </dependency>-->
<!-- <dependency>-->
<!-- <groupId>net.kyori</groupId>-->
<!-- <artifactId>adventure-api</artifactId>-->
<!-- <version>4.0.0-SNAPSHOT</version>-->
<!-- </dependency>-->
<dependency>
<groupId>org.apache.maven.scm</groupId>
<artifactId>maven-scm-provider-gitexe</artifactId>
@ -167,7 +184,7 @@
<dependency>
<groupId>org.spigotmc</groupId>
<artifactId>spigot-api</artifactId>
<version>1.16.1-R0.1-SNAPSHOT</version>
<version>1.16.2-R0.1-SNAPSHOT</version>
<scope>provided</scope>
</dependency>
<dependency>

View File

@ -120,6 +120,8 @@ public class CompatibilityManager {
case 16:
if (minecraftGameVersion.getPatchVersion().asInt() == 1) {
return NMSVersion.NMS_1_16_1;
} else if(minecraftGameVersion.getPatchVersion().asInt() == 2) {
return NMSVersion.NMS_1_16_2;
}
}
}

View File

@ -18,6 +18,7 @@ public enum NMSVersion {
//1.16
NMS_1_16_1("1.16.1"),
NMS_1_16_2("1.16.2"),
//Version not known to this build of mcMMO
UNSUPPORTED("unsupported");