add server base seed
This commit is contained in:
parent
b01b602728
commit
252c157cf0
3 changed files with 4 additions and 2 deletions
|
@ -293,6 +293,8 @@ public final class WorldServer extends AWorldServer {
|
|||
this.chunkDir = new File(new File("chunk"), dim.getDimensionName());
|
||||
if(!debug) {
|
||||
this.chunkDir.mkdirs();
|
||||
if(!Config.seed.isEmpty())
|
||||
this.rand.setSeed((long)Config.seed.hashCode() ^ ~((long)dim.getDimensionName().hashCode()));
|
||||
this.seed = this.rand.longv();
|
||||
this.dimension.setSeed(this.seed);
|
||||
TagObject tag = null;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue