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