From 33287b650f2f5ff33554736a6fd65813098c9585 Mon Sep 17 00:00:00 2001 From: nossr50 Date: Mon, 26 Oct 2020 16:52:43 -0700 Subject: [PATCH] Add NMS definition for 1.16.4 --- .../com/gmail/nossr50/util/compat/CompatibilityManager.java | 2 ++ src/main/java/com/gmail/nossr50/util/nms/NMSVersion.java | 1 + 2 files changed, 3 insertions(+) diff --git a/src/main/java/com/gmail/nossr50/util/compat/CompatibilityManager.java b/src/main/java/com/gmail/nossr50/util/compat/CompatibilityManager.java index dcfc7d314..6e5f7c8f4 100644 --- a/src/main/java/com/gmail/nossr50/util/compat/CompatibilityManager.java +++ b/src/main/java/com/gmail/nossr50/util/compat/CompatibilityManager.java @@ -124,6 +124,8 @@ public class CompatibilityManager { return NMSVersion.NMS_1_16_2; } else if(minecraftGameVersion.getPatchVersion().asInt() == 3) { return NMSVersion.NMS_1_16_3; + } else if(minecraftGameVersion.getPatchVersion().asInt() >= 4) { + return NMSVersion.NMS_1_16_4; } } } diff --git a/src/main/java/com/gmail/nossr50/util/nms/NMSVersion.java b/src/main/java/com/gmail/nossr50/util/nms/NMSVersion.java index 3768943c9..2f2597a0b 100644 --- a/src/main/java/com/gmail/nossr50/util/nms/NMSVersion.java +++ b/src/main/java/com/gmail/nossr50/util/nms/NMSVersion.java @@ -20,6 +20,7 @@ public enum NMSVersion { NMS_1_16_1("1.16.1"), NMS_1_16_2("1.16.2"), NMS_1_16_3("1.16.3"), + NMS_1_16_4("1.16.4"), //Version not known to this build of mcMMO UNSUPPORTED("unsupported");