Fix regen world keeping seed not working

This commit is contained in:
Ben Woo 2023-09-11 15:38:28 +08:00
parent d8334ad71a
commit 379e0172c4
No known key found for this signature in database
GPG Key ID: FB2A3645536E12C8

View File

@ -80,7 +80,7 @@ public class RegenCommand extends MultiverseCommand {
() -> {
issuer.sendInfo(MVCorei18n.REGEN_REGENERATING, "{world}", world.getName());
worldManager.regenWorld(RegenWorldOptions.world(world)
.randomSeed(!parsedFlags.hasFlagValue("--seed"))
.randomSeed(parsedFlags.hasFlag("--seed"))
.seed(parsedFlags.flagValue("--seed", String.class))
.keepWorldConfig(!parsedFlags.hasFlag("--reset-world-config"))
.keepGameRule(!parsedFlags.hasFlag("--reset-gamerules"))