Merge pull request #6 from sylvessa/fix/dedi-random-seed

Add random seed picker for newly created worlds
This commit is contained in:
kuwa 2026-03-12 11:04:40 +09:00 committed by GitHub
commit 2d71095fe2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -29,6 +29,7 @@
#include "../../Minecraft.World/compression.h"
#include "../../Minecraft.World/OldChunkStorage.h"
#include "../../Minecraft.World/net.minecraft.world.level.tile.h"
#include "../../Minecraft.World/Random.h"
#include <stdio.h>
#include <stdlib.h>
@ -574,6 +575,10 @@ int main(int argc, char **argv)
{
param->seed = config.seed;
}
else
{
param->seed = (new Random())->nextLong();
}
#ifdef _LARGE_WORLDS
param->xzSize = (unsigned int)config.worldSizeChunks;
param->hellScale = (unsigned char)config.worldHellScale;