From db1d15d93ae56c2b2c0971079cf50fd1d1ce7c6f Mon Sep 17 00:00:00 2001 From: asofold Date: Sat, 2 Apr 2016 13:46:27 +0200 Subject: [PATCH] [Bleeding] Allow ProtocolLib 4.0.0 on MC [1.9, 1.10). See notes. Issues on quick testing: * End portal seems bugged, resulting in desync, entering in creative mode. Switching to survival via console allows end portal travel after kick+relog. Can't tell if this is a 1.9 bug or due to building NCP vs. an older version of ProtocolLib. --- .../neatmonster/nocheatplus/compat/DefaultComponentFactory.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/NCPPlugin/src/main/java/fr/neatmonster/nocheatplus/compat/DefaultComponentFactory.java b/NCPPlugin/src/main/java/fr/neatmonster/nocheatplus/compat/DefaultComponentFactory.java index 9294c9fd..24ec92fb 100644 --- a/NCPPlugin/src/main/java/fr/neatmonster/nocheatplus/compat/DefaultComponentFactory.java +++ b/NCPPlugin/src/main/java/fr/neatmonster/nocheatplus/compat/DefaultComponentFactory.java @@ -87,7 +87,7 @@ public class DefaultComponentFactory { boolean vP3_7_0 = GenericVersion.isVersionBetween(pV, "3.7", true, "3.7.0", true); boolean vP4_0_0 = GenericVersion.compareVersions("4.0.0", pV) <= 0; // 4.0.0 or later until next MC version is out. if ( - ServerVersion.compareMinecraftVersion("1.9") == 0 && vP4_0_0 + ServerVersion.isMinecraftVersionBetween("1.9", true, "1.10", false) && vP4_0_0 || ServerVersion.isMinecraftVersionBetween("1.9", true, "1.10", false) && vP3_7_0 || ServerVersion.isMinecraftVersionBetween("1.8", true, "1.9", false) && (vP3_6_4 || vP3_6_5) || ServerVersion.isMinecraftVersionBetween("1.8", true, "1.9", false) && vP3_6_6