Replace truncating the hashed seed with encoding it into base32

This commit is contained in:
s809
2024-11-14 15:23:57 +05:00
parent 928bc5df6c
commit f94b6dbaa5
4 changed files with 6 additions and 5 deletions
+1
View File
@@ -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
{
@@ -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; }
@@ -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(); }