mirror of
https://github.com/NoCheatPlus/NoCheatPlus.git
synced 2024-09-27 14:13:11 +02:00
Set NCPCompatCBDev as optional dependency.
This commit is contained in:
parent
e0318a6df3
commit
6c5c6941f9
@ -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>
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user