Uses new API to enable other addon flag loading in settings

This commit is contained in:
tastybento 2019-09-13 21:04:55 -07:00
parent 5a1a747d26
commit 73dd812d3a
1 changed files with 10 additions and 1 deletions

View File

@ -32,7 +32,6 @@ public class CaveBlock extends GameModeAddon
this.saveDefaultConfig();
this.loadSettings();
this.saveWorldSettings();
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
// ---------------------------------------------------------------------