Update to new API

This commit is contained in:
tastybento 2018-07-29 17:21:25 -07:00
parent 0f2c3771ed
commit 1729febf54
1 changed files with 2 additions and 2 deletions

View File

@ -33,7 +33,7 @@ public class BSkyBlockWorld {
// Create the world if it does not exist
islandWorld = WorldCreator.name(worldName).type(WorldType.FLAT).environment(World.Environment.NORMAL).generator(new ChunkGeneratorWorld(addon))
.createWorld();
addon.getBSkyBlock().registerWorld(islandWorld, addon.getSettings());
addon.getPlugin().registerWorld(islandWorld, addon.getSettings());
// Make the nether if it does not exist
if (addon.getSettings().isNetherGenerate()) {
@ -61,7 +61,7 @@ public class BSkyBlockWorld {
}
// Load schematics
addon.getBSkyBlock().getSchemsManager().loadIslands(islandWorld);
addon.getPlugin().getSchemsManager().loadIslands(islandWorld);
}