Bug fix: Use same seed for seed world as main world.

This commit is contained in:
tastybento 2023-02-11 09:09:25 -08:00
parent b62a1862a2
commit e978b29d85

View File

@ -360,7 +360,8 @@ public class AddonsManager {
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
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();
w.setDifficulty(Difficulty.PEACEFUL);
}