mirror of
https://github.com/DRE2N/DungeonsXL.git
synced 2024-11-24 19:45:43 +01:00
Don't register Caliburn twice
This commit is contained in:
parent
b7c80d2493
commit
bb87056325
@ -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();
|
||||||
|
Loading…
Reference in New Issue
Block a user