mirror of
https://github.com/songoda/UltimateKits.git
synced 2024-11-08 11:41:28 +01:00
Catch kit conversion.
This commit is contained in:
parent
748538742c
commit
af788389cd
@ -38,6 +38,7 @@ public class Convert {
|
||||
}
|
||||
|
||||
private static void convertKits(Hook hook) {
|
||||
try {
|
||||
Set<String> kits = hook.getKits();
|
||||
for (String kit : kits) {
|
||||
Kit kitObj = UltimateKits.getInstance().getKitManager().addKit(new Kit(kit));
|
||||
@ -49,6 +50,9 @@ public class Convert {
|
||||
kitObj.setDelay(hook.getDelay(kit));
|
||||
}
|
||||
UltimateKits.getInstance().saveKits(true);
|
||||
} catch (NoSuchMethodError | NoClassDefFoundError e) {
|
||||
System.out.println("UltimateKits conversion failed.");
|
||||
}
|
||||
}
|
||||
|
||||
private static boolean isInJsonFormat() {
|
||||
|
Loading…
Reference in New Issue
Block a user