mirror of
https://github.com/smartcmd/MinecraftConsoles.git
synced 2026-08-20 09:57:09 +00:00
add random seed generation
This commit is contained in:
parent
8d6d6b1d4f
commit
64daf89695
|
|
@ -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