Skip to content

Commit

Permalink
Better structures.
Browse files Browse the repository at this point in the history
  • Loading branch information
tastybento committed Mar 12, 2023
1 parent c308414 commit 87fb333
Show file tree
Hide file tree
Showing 8 changed files with 140 additions and 330 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
<powermock.version>2.0.9</powermock.version>
<!-- More visible way how to change dependency versions -->
<spigot.version>1.19.3-R0.1-SNAPSHOT</spigot.version>
<bentobox.version>1.22.0-SNAPSHOT</bentobox.version>
<bentobox.version>1.22.1-SNAPSHOT</bentobox.version>
<!-- Revision variable removes warning about dynamic version -->
<revision>${build.version}-SNAPSHOT</revision>
<!-- Do not change unless you want different name for local builds. -->
Expand Down
14 changes: 8 additions & 6 deletions src/main/java/world/bentobox/boxed/Boxed.java
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,6 @@ public void setup()
new AdminPlaceStructureCommand(this);
}
};


}

private boolean loadSettings() {
Expand Down Expand Up @@ -183,7 +181,7 @@ private void createNether(String worldName) {
// This creates a vanilla base world with biomes
AbstractBoxedChunkGenerator seedBaseGen = new BoxedSeedChunkGenerator(this, Environment.NETHER);
baseWorldNether = WorldCreator
.name(SEED+NETHER+BASE)
.name(worldName + "/" + SEED+NETHER+BASE)
.generator(seedBaseGen)
.environment(Environment.NETHER)
.seed(getSettings().getSeed())
Expand All @@ -196,7 +194,7 @@ private void createNether(String worldName) {
log("Creating Boxed Biomed Nether world ...");

seedWorldNether = WorldCreator
.name(SEED+NETHER)
.name(worldName + "/" + SEED+NETHER)
.generator(new BoxedSeedChunkGenerator(this, Environment.NETHER, new NetherSeedBiomeGenerator(this, seedBaseGen)))
.environment(Environment.NETHER)
.seed(getSettings().getSeed())
Expand All @@ -219,7 +217,7 @@ private void createOverWorld(String worldName) {
// This creates a vanilla base world with biomes
AbstractBoxedChunkGenerator seedBaseGen = new BoxedSeedChunkGenerator(this, Environment.NORMAL);
baseWorld = WorldCreator
.name(SEED+BASE)
.name(worldName + "/" + SEED+BASE)
.generator(seedBaseGen)
.environment(Environment.NORMAL)
.seed(getSettings().getSeed())
Expand All @@ -232,7 +230,7 @@ private void createOverWorld(String worldName) {
log("Creating Boxed Biomed world ...");

seedWorld = WorldCreator
.name(SEED)
.name(worldName + "/" + SEED)
.generator(new BoxedSeedChunkGenerator(this, Environment.NORMAL, new SeedBiomeGenerator(this, seedBaseGen)))
.environment(Environment.NORMAL)
.seed(getSettings().getSeed())
Expand Down Expand Up @@ -395,4 +393,8 @@ public BlockPopulator getBoxedBlockPopulator() {
return boxedBlockPopulator;
}

@Override
public boolean isUsesNewChunkGeneration() {
return true;
}
}

0 comments on commit 87fb333

Please sign in to comment.