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;
initFolders();
caliburn = CaliburnAPI.getInstance() == null ? new CaliburnAPI(this) : CaliburnAPI.getInstance();
caliburn.loadDataFiles();
caliburn.finishInitialization();
if (CaliburnAPI.getInstance() == null) {
caliburn = new CaliburnAPI(this);
caliburn.loadDataFiles();
caliburn.finishInitialization();
} else {
caliburn = CaliburnAPI.getInstance();
}
DPermission.register();
loadConfig();
createCaches();