mirror of
https://github.com/BentoBoxWorld/BentoBox.git
synced 2025-02-13 02:41:20 +01:00
Bug fix: Use same seed for seed world as main world.
This commit is contained in:
parent
b62a1862a2
commit
e978b29d85
@ -360,7 +360,8 @@ public class AddonsManager {
|
|||||||
|
|
||||||
private void seedWorld(GameModeAddon gameMode, @NonNull World world) {
|
private void seedWorld(GameModeAddon gameMode, @NonNull World world) {
|
||||||
// Use the Flat type of world because this is a copy and no vanilla creation is required
|
// Use the Flat type of world because this is a copy and no vanilla creation is required
|
||||||
WorldCreator wc = WorldCreator.name(world.getName() + "/bentobox").type(WorldType.FLAT).environment(world.getEnvironment());
|
WorldCreator wc = WorldCreator.name(world.getName() + "/bentobox").type(WorldType.FLAT).environment(world.getEnvironment())
|
||||||
|
.seed(world.getSeed());
|
||||||
World w = gameMode.getWorldSettings().isUseOwnGenerator() ? wc.createWorld() : wc.generator(world.getGenerator()).createWorld();
|
World w = gameMode.getWorldSettings().isUseOwnGenerator() ? wc.createWorld() : wc.generator(world.getGenerator()).createWorld();
|
||||||
w.setDifficulty(Difficulty.PEACEFUL);
|
w.setDifficulty(Difficulty.PEACEFUL);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user