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
@@ -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(); }