Don't register Caliburn twice

This commit is contained in:
Daniel Saukel 2020-10-19 20:10:43 +02:00
parent b7c80d2493
commit bb87056325

View File

@ -206,9 +206,13 @@ public class DungeonsXL extends DREPlugin implements DungeonsAPI {
instance = this; instance = this;
initFolders(); initFolders();
caliburn = CaliburnAPI.getInstance() == null ? new CaliburnAPI(this) : CaliburnAPI.getInstance(); if (CaliburnAPI.getInstance() == null) {
caliburn = new CaliburnAPI(this);
caliburn.loadDataFiles(); caliburn.loadDataFiles();
caliburn.finishInitialization(); caliburn.finishInitialization();
} else {
caliburn = CaliburnAPI.getInstance();
}
DPermission.register(); DPermission.register();
loadConfig(); loadConfig();
createCaches(); createCaches();