mirror of
https://github.com/BentoBoxWorld/CaveBlock.git
synced 2025-01-09 18:57:47 +01:00
Uses new API to enable other addon flag loading in settings
This commit is contained in:
parent
5a1a747d26
commit
73dd812d3a
@ -32,7 +32,6 @@ public class CaveBlock extends GameModeAddon
|
|||||||
|
|
||||||
this.saveDefaultConfig();
|
this.saveDefaultConfig();
|
||||||
this.loadSettings();
|
this.loadSettings();
|
||||||
this.saveWorldSettings();
|
|
||||||
|
|
||||||
this.chunkGenerator = new ChunkGeneratorWorld(this);
|
this.chunkGenerator = new ChunkGeneratorWorld(this);
|
||||||
|
|
||||||
@ -95,6 +94,16 @@ public class CaveBlock extends GameModeAddon
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* (non-Javadoc)
|
||||||
|
* @see world.bentobox.bentobox.api.addons.Addon#allLoaded()
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public void allLoaded() {
|
||||||
|
// Reload settings and save them. This will occur after all addons have loaded
|
||||||
|
this.loadSettings();
|
||||||
|
this.saveWorldSettings();
|
||||||
|
}
|
||||||
|
|
||||||
// ---------------------------------------------------------------------
|
// ---------------------------------------------------------------------
|
||||||
// Section: World generators
|
// Section: World generators
|
||||||
// ---------------------------------------------------------------------
|
// ---------------------------------------------------------------------
|
||||||
|
Loading…
Reference in New Issue
Block a user