From f197bc266778853102226b8c71b1639231409903 Mon Sep 17 00:00:00 2001 From: GeorgH93 Date: Tue, 23 May 2017 18:59:43 +0200 Subject: [PATCH] Add support for MC 1.12 (pre) --- src/at/pcgamingfreaks/MinePacks/MinePacks.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/at/pcgamingfreaks/MinePacks/MinePacks.java b/src/at/pcgamingfreaks/MinePacks/MinePacks.java index f7c6582..408b201 100644 --- a/src/at/pcgamingfreaks/MinePacks/MinePacks.java +++ b/src/at/pcgamingfreaks/MinePacks/MinePacks.java @@ -65,7 +65,7 @@ public void onEnable() //region Check compatibility with used minecraft version String name = Bukkit.getServer().getClass().getPackage().getName(); String[] version = name.substring(name.lastIndexOf('.') + 2).split("_"); - if((version[0].equals("1") && Integer.valueOf(version[1]) > 11) || Integer.valueOf(version[0]) > 1) + if((version[0].equals("1") && Integer.valueOf(version[1]) > 12) || Integer.valueOf(version[0]) > 1) { MinePacks.getInstance().warnOnVersionIncompatibility(version[0] + "." + version[1]); this.setEnabled(false);