Add support for 1.16.4

This commit is contained in:
2020-11-07 16:33:40 +01:00
parent 24606bf49d
commit 16d5dd39f2
26 changed files with 417 additions and 19 deletions
+2 -2
View File
@@ -8,7 +8,7 @@
<parent>
<artifactId>npclib</artifactId>
<groupId>net.jitse</groupId>
<version>2.9-SNAPSHOT</version>
<version>2.11-SNAPSHOT</version>
</parent>
<artifactId>npclib-api</artifactId>
@@ -28,7 +28,7 @@
<dependency>
<groupId>org.spigotmc</groupId>
<artifactId>spigot-api</artifactId>
<version>1.16.1-R0.1-SNAPSHOT</version>
<version>1.16.3-R0.1-SNAPSHOT</version>
<scope>provided</scope>
</dependency>
<dependency>
@@ -111,7 +111,9 @@ public final class NPCLib {
*/
public NPC createNPC(List<String> text) {
try {
return (NPC) npcClass.getConstructors()[0].newInstance(this, text);
return (NPC) npcClass
.getConstructors()[0]
.newInstance(this, text);
} catch (Exception exception) {
logger.warning("Failed to create NPC. Please report the following stacktrace message", exception);
}
@@ -17,7 +17,8 @@ public enum MinecraftVersion {
V1_13_R2,
V1_14_R1,
V1_15_R1,
V1_16_R1;
V1_16_R1,
V1_16_R3;
public boolean isAboveOrEqual(MinecraftVersion compare) {
return ordinal() >= compare.ordinal();