Set NCPCompatCBDev as optional dependency.

This commit is contained in:
asofold 2015-03-13 22:52:11 +01:00
parent e0318a6df3
commit 6c5c6941f9
2 changed files with 2 additions and 1 deletions

View File

@ -99,6 +99,7 @@
<groupId>fr.neatmonster</groupId>
<artifactId>ncpcompatcbdev</artifactId>
<version>1.1-SNAPSHOT</version>
<optional>true</optional>
</dependency>
<dependency>
<groupId>fr.neatmonster</groupId>

View File

@ -105,7 +105,7 @@ public class MCAccessFactory {
// Only add as long as no stable module has been added.
// 1.8.3 (Spigot)
try{
return new fr.neatmonster.nocheatplus.compat.cbdev.MCAccessCBDev();
return (MCAccess) Class.forName("fr.neatmonster.nocheatplus.compat.cbdev.MCAccessCBDev").newInstance();
}
catch(Throwable t) {
throwables.add(t);