mirror of
https://github.com/smartcmd/MinecraftConsoles.git
synced 2026-08-20 09:57:09 +00:00
Merge pull request #6 from sylvessa/fix/dedi-random-seed
Add random seed picker for newly created worlds
This commit is contained in:
commit
2d71095fe2
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue