Replace truncating the hashed seed with encoding it into base32
This commit is contained in:
@@ -189,6 +189,7 @@ subprojects { p ->
|
||||
// the standalone core jar needs logging shaded otherwise it won't run
|
||||
forgeShadowMe("org.apache.logging.log4j:log4j-api:${rootProject.log4j_version}")
|
||||
forgeShadowMe("org.apache.logging.log4j:log4j-core:${rootProject.log4j_version}")
|
||||
forgeShadowMe("commons-codec:commons-codec:1.16.0")
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
+2
-2
@@ -197,10 +197,10 @@ public class ClientLevelWrapper implements IClientLevelWrapper
|
||||
public String getDimensionName() { return this.level.dimension().location().toString(); }
|
||||
|
||||
@Override
|
||||
public long getHashedSeed() { return (int) this.level.getBiomeManager().biomeZoomSeed; }
|
||||
public long getHashedSeed() { return this.level.getBiomeManager().biomeZoomSeed; }
|
||||
|
||||
@Override
|
||||
public String getDhIdentifier() { return this.getHashedSeed() + "@" + this.getDimensionName(); }
|
||||
public String getDhIdentifier() { return this.getHashedSeedEncoded() + "@" + this.getDimensionName(); }
|
||||
|
||||
@Override
|
||||
public EDhApiLevelType getLevelType() { return EDhApiLevelType.CLIENT_LEVEL; }
|
||||
|
||||
+1
-1
@@ -97,7 +97,7 @@ public class ServerLevelWrapper implements IServerLevelWrapper
|
||||
public String getDimensionName() { return this.level.dimension().location().toString(); }
|
||||
|
||||
@Override
|
||||
public long getHashedSeed() { return (int) this.level.getBiomeManager().biomeZoomSeed; }
|
||||
public long getHashedSeed() { return this.level.getBiomeManager().biomeZoomSeed; }
|
||||
|
||||
@Override
|
||||
public String getDhIdentifier() { return this.getDimensionName(); }
|
||||
|
||||
+1
-1
Submodule coreSubProjects updated: 127ec81ade...5448b8890d
Reference in New Issue
Block a user